From b23cfe83223e5befaa6794d458fb805639374691 Mon Sep 17 00:00:00 2001 From: aevesdocker Date: Tue, 25 Feb 2025 11:06:00 +0000 Subject: [PATCH] edits --- content/manuals/projects/_index.md | 4 +- content/manuals/projects/about.md | 24 ++++++---- content/manuals/projects/edit.md | 21 ++++++--- content/manuals/projects/manage.md | 10 +++-- content/manuals/projects/open.md | 44 ++++++++++++------ content/manuals/projects/share.md | 20 ++++++++- content/manuals/projects/view.md | 71 +++++++++++++++++++++++++----- 7 files changed, 149 insertions(+), 45 deletions(-) diff --git a/content/manuals/projects/_index.md b/content/manuals/projects/_index.md index 86ab7563eeb..82a30a9b794 100644 --- a/content/manuals/projects/_index.md +++ b/content/manuals/projects/_index.md @@ -45,8 +45,8 @@ A project organizes your code and Docker artifacts into a single object. These a ### Key features and benefits - One-click project setup: Open a local folder or clone a Git repository and run your project instantly. - - Minimal Docker expertise required: Ideal for both beginners and experienced engineers. + - Minimal Docker expertise required: Ideal for both beginners and experienced developers. - Custom `run` commands for your projects: Define and store preconfigured `run` commands that are equivalent to running `docker compose up`. - - Local & remote projects: Work on projects locally or sync artifacts to the cloud for cross-device access and easy collaboration. + - Local and remote projects: Work on projects locally or sync artifacts to the cloud for cross-device access and easy collaboration. {{< grid >}} diff --git a/content/manuals/projects/about.md b/content/manuals/projects/about.md index 1650e3bac05..19431eed5e6 100644 --- a/content/manuals/projects/about.md +++ b/content/manuals/projects/about.md @@ -5,33 +5,41 @@ keywords: docker projects weight: 10 --- -Docker Projects requires a Compose file (docker-compose.yml) to define your application's services, networks, and configurations. When you open a project, Docker Projects automatically detects the Compose file, allowing you to configure and run services with pre-set commands. +Docker Projects requires a Compose file (`compose.yml`) to define your application's services, networks, and configurations. When you open a project, Docker Projects automatically detects the Compose file, allowing you to configure and run services with pre-set commands. By integrating with Docker Compose, Docker Projects ensures a consistent, easy-to-manage workflow for both individual developers and teams. Whether you're starting a new project, configuring it, or collaborating with a team, Docker Projects keeps the process simple. +Docker Projects works as follows: + 1. Create or open a project. You can: - Open a local project: Select a folder on your machine that contains your project code. - - Clone a Git repository:Provide a repository URL and clone the project into a local directory. + - Clone a Git repository: Provide a repository URL and clone the project into a local directory. -Once a project is opened, Docker Desktop detects the Compose file and prepares the project for execution. + Once a project is opened, Docker Desktop detects the Compose file and prepares the project for execution. 2. Configure and run your project with pre-configured commands. These commands: - Work like `docker compose up`, launching services based on the Compose file. - Can be customized with additional flags, multiple Compose files, and environment variables. - - Allow pre-run tasks, such as executing scripts before starting the services. + - Enable pre-run tasks, such as executing scripts before starting the services. -All of which means you can fine-tune your configurations without manually running complex CLI commands. + All of which means you can fine-tune your configurations without manually running complex CLI commands. 3. Collaborate and share with teams. For projects linked to a Git repository, Docker Projects stores artifacts in the cloud, enabling easy collaboration: - Work across devices: Open a project from any machine and instantly access stored configurations. - - Share configurations: Team members can access predefined run commands, reducing setup time. + - Share configurations: Team members can access pre-defined run commands, reducing setup time. -Collaboration is seamless—new developers can join a team, open a project, and start working without complex setup steps. + Collaboration is easy — new developers can join a team, open a project, and start working without complex setup steps. 4. Manage and iterate. Once a project is up and running, Docker Projects makes it easy to monitor, update, and troubleshoot: - View logs to debug issues and track service activity. - - Edit configurations and run commands as requirements change. \ No newline at end of file + - Edit configurations and run commands as requirements change. + +## What's next? + + - [Learn how to open a new project](/manuals/projects/new.md) + - [Explore common FAQs](/manuals/projects/faq.md) + diff --git a/content/manuals/projects/edit.md b/content/manuals/projects/edit.md index 427aa9e276a..c3afb54c3bb 100644 --- a/content/manuals/projects/edit.md +++ b/content/manuals/projects/edit.md @@ -9,13 +9,13 @@ weight: 40 1. Open an existing project and ensure that it is stopped. -2. From the command dopdown menu, select **New run command**. +2. From the command drop-down menu, select **New run command**. 3. Specify the following information for the run command: > [!TIP] > - > While configuring your run command, you can view the equivalent docker compose up command in the Run command section on the configuration page. You can also use this command to run your project from the command line. You can refer to the docker compose up reference documentation to learn more about the options you configure. + > While configuring your run command, you can view the equivalent `docker compose up` command in the **Run command** section on the configuration page. You can also use this command to run your project from the command line. You can refer to the [`docker compose up` reference documentation](/reference/cli/docker/compose/up.md) to learn more about the options you configure. - **Name**: Specify a name to identify the run command. - **Compose files**: Select one or more Compose files from your project. @@ -23,18 +23,25 @@ weight: 40 > [!TIP] > - > While the --env-file flag isn't currently supported, you can specify environment variables in your Compose file, or use the Tasks option to run a script that sets your environment variables. + > While the `--env-file` flag isn't currently supported, you can specify environment variables in your Compose file, or use the **Tasks** option to run a script that sets your environment variables. - - **Services that will run**: After selecting one or more Compose files, the services defined in the files will appear here. If there is more than one service, you can optionally choose to not run a service by unchecking it. - - **Tasks (Advanced options)**: Optionally specify a command to run before running the project. For example, if you want to run a bash script from the project directory named set-vars.sh, you can specify bash set-vars.sh. Or, on Windows to run a script with cmd.exe named set-vars.bat, specify set-vars.bat. Note that a task can access environment variables from your terminal profile, but it can't access local shell functions nor aliases. + - **Services that will run**: After selecting one or more Compose files, the services defined in the files will appear here. If there is more than one service, you can optionally choose to not run a service by deselecing the checkbox. + - **Tasks (Advanced options)**: Optionally specify a command to run before running the project. For example, if you want to run a bash script from the project directory named `set-vars.sh`, you can specify bash `set-vars.sh`. Or, on Windows to run a script with `cmd.exe` named `set-vars.bat`, specify `set-vars.bat`. Note that a task can access environment variables from your terminal profile, but it can't access local shell functions nor aliases. 4. Select **Save changes**. -You can now select the new run command from the dropdown menu after opening the project. +You can now select the new run command from the drop-down menu after opening the project. ## Edit a run command 1. Open an existing project and ensure that it is stopped. -2. Select the run command you want to change from the command dropdown menu. + +2. Select the run command you want to change from the command drop-down menu. + 3. Select the **Edit** icon next to the **Run** button. + 4. Specify your changes and then select **Save changes**. + +## What's next? + + - [Manage your projects](/manuals/projects/manage.md) \ No newline at end of file diff --git a/content/manuals/projects/manage.md b/content/manuals/projects/manage.md index c6cff052e23..097b609d819 100644 --- a/content/manuals/projects/manage.md +++ b/content/manuals/projects/manage.md @@ -9,7 +9,7 @@ weight: 50 1. Open a new or existing project. -2. Select a run command from the dropdown menu. +2. Select a run command from the drop-down menu. 3. Select the **Run** button for the project or the **Play** button next to the service you'd like to run. @@ -21,14 +21,16 @@ weight: 50 ## Remove a project from Docker Desktop -If a project is associated with a Git repository, you can remove it from Docker Desktop. When a project is deleted, you can no longer run the project from the **Projects** view, but its run configuration still exists remotely in the cloud. +If a project is associated with a Git repository, you can remove it from Docker Desktop. When a project is deleted, you can no longer run the project from the **Projects** view, but its run configuration still exists remotely in the cloud. This means that you can later [open the project](/manuals/projects/open.md#open-an-existing-remote-project) and associate it with the remote run configuration without having to specify the run command again. None of your local code is deleted when removing a project from Docker Desktop. To remove a project from Docker Desktop: -Sign in to Docker Desktop, and go to Projects. -Select the options menu () next to the project, and then select Remove from Docker Desktop. + +1. Sign in to Docker Desktop, and go to **Projects**. + +2. Select the **More actions** menu next to the project, and then select **Remove from Docker Desktop**. ## Delete a project diff --git a/content/manuals/projects/open.md b/content/manuals/projects/open.md index 660e00b87dd..df8a0130984 100644 --- a/content/manuals/projects/open.md +++ b/content/manuals/projects/open.md @@ -5,9 +5,13 @@ keywords: Docker, projects, docker deskotp, containerization, open, remote, loca weight: 20 --- +> [!NOTE] +> +> In order to use Docker Projects, make sure you have enabled the **Access experimental features** setting on the **Features in development** tab. + ## New projects -When you open a new or remote project, Docker Projects stores all your code and Docker artifacts locally. In order to run a project, it must be stored locally. In the Projects page in Docker Desktop, local projects display the local path under the project. +In order to run a new project, it must be stored locally. In the **Projects** view in Docker Desktop, local projects display the local path under the project. ### Open a new local project @@ -17,7 +21,7 @@ To open a new project: 1. Sign in to Docker Desktop, and go to **Projects**. -2. Select one **Open a local folder**. This lets you select a local folder that contains at least your project’s code and a Compose file. +2. Select **Open a local folder**. This lets you select a local folder that contains your project’s code and a Compose file. > [!NOTE] > @@ -25,11 +29,15 @@ To open a new project: 3. Configure your project by giving it a name and setting the owner, then select **Next**. + > [!NOTE] + > + > If you are part of a Docker organization you have the option to [share your project](share.md) with the organization. + 4. Specify how to run your project by selecting **New run command**: > [!TIP] > - > While configuring your run command, you can view the equivalent docker compose up command in the Run command section on the configuration page. You can also use this command to run your project from the command line. You can refer to the docker compose up reference documentation to learn more about the options you configure. + > While configuring your run command, you can view the equivalent `docker compose up` command in the **Run command** section on the configuration page. You can also use this command to run your project from the command line. You can refer to the [`docker compose up` reference documentation](/reference/cli/docker/compose/up.md) to learn more about the options you configure. - **Name**: Specify a name to identify the run command. - **Compose files**: Select one or more Compose files from your project. @@ -37,10 +45,10 @@ To open a new project: > [!TIP] > - > While the --env-file flag isn't currently supported, you can specify environment variables in your Compose file, or use the Tasks option to run a script that sets your environment variables. + > While the `--env-file` flag isn't currently supported, you can specify environment variables in your Compose file, or use the **Tasks** option to run a script that sets your environment variables. - - **Services that will run**: After selecting one or more Compose files, the services defined in the files will appear here. If there is more than one service, you can optionally choose to not run a service by unchecking it. - - **Tasks (Advanced options)**: Optionally specify a command to run before running the project. For example, if you want to run a bash script from the project directory named set-vars.sh, you can specify bash set-vars.sh. Or, on Windows to run a script with cmd.exe named set-vars.bat, specify set-vars.bat. Note that a task can access environment variables from your terminal profile, but it can't access local shell functions nor aliases. + - **Services that will run**: After selecting one or more Compose files, the services defined in the files will appear here. If there is more than one service, you can optionally choose to not run a service by deselecting the checkbox. + - **Tasks (Advanced options)**: Optionally specify a command to run before running the project. For example, if you want to run a bash script from the project directory named `set-vars.sh`, you can specify bash `set-vars.sh`. Or, on Windows to run a script with `cmd.exe` named `set-vars.bat`, specify `set-vars.bat`. Note that a task can access environment variables from your terminal profile, but it can't access local shell functions nor aliases. 5. Select **Save changes**. @@ -50,7 +58,7 @@ Your project is now ready to run. The following steps prompt you to clone the Git repository for your project. -If you have already cloned the repository outside of Docker Projects, then you can open the project as a new project and Docker Projects will automatically detect and link the repository. +If you have already cloned the repository outside of Docker Projects, then you can open the project as a new project and Docker Projects will automatically detect and link the repository. To clone and open a remote project: @@ -64,11 +72,15 @@ To clone and open a remote project: 5. Configure your project by giving it a name and setting the owner, then select **Next**. + > [!NOTE] + > + > If you are part of a Docker organization you have the option to [share your project](share.md) with the organization. + 6. Specify how to run your project by selecting **New run command**: > [!TIP] > - > While configuring your run command, you can view the equivalent docker compose up command in the Run command section on the configuration page. You can also use this command to run your project from the command line. You can refer to the docker compose up reference documentation to learn more about the options you configure. + > While configuring your run command, you can view the equivalent `docker compose up` command in the **Run command** section on the configuration page. You can also use this command to run your project from the command line. You can refer to the [`docker compose up` reference documentation](/reference/cli/docker/compose/up.md) to learn more about the options you configure. - **Name**: Specify a name to identify the run command. - **Compose files**: Select one or more Compose files from your project. @@ -76,10 +88,10 @@ To clone and open a remote project: > [!TIP] > - > While the --env-file flag isn't currently supported, you can specify environment variables in your Compose file, or use the Tasks option to run a script that sets your environment variables. + > While the `--env-file` flag isn't currently supported, you can specify environment variables in your Compose file, or use the **Tasks** option to run a script that sets your environment variables. - - **Services that will run**: After selecting one or more Compose files, the services defined in the files will appear here. If there is more than one service, you can optionally choose to not run a service by unchecking it. - - **Tasks (Advanced options)**: Optionally specify a command to run before running the project. For example, if you want to run a bash script from the project directory named set-vars.sh, you can specify bash set-vars.sh. Or, on Windows to run a script with cmd.exe named set-vars.bat, specify set-vars.bat. Note that a task can access environment variables from your terminal profile, but it can't access local shell functions nor aliases. + - **Services that will run**: After selecting one or more Compose files, the services defined in the files will appear here. If there is more than one service, you can optionally choose to not run a service by deselecing the checkbox. + - **Tasks (Advanced options)**: Optionally specify a command to run before running the project. For example, if you want to run a bash script from the project directory named `set-vars.sh`, you can specify bash `set-vars.sh`. Or, on Windows to run a script with `cmd.exe` named `set-vars.bat`, specify `set-vars.bat`. Note that a task can access environment variables from your terminal profile, but it can't access local shell functions nor aliases. 7. Select **Save changes**. @@ -93,11 +105,17 @@ To clone and open a remote project: ### Open an existing remote project -In the Projects page in Docker Desktop, existing remote projects display No local copy under the project. +In the **Projects** view in Docker Desktop, existing remote projects display **No local copy** under the project. -You’ll see remote projects when you remove a project from Docker Desktop, or access Docker Desktop from a new device after creating a project associated with a Git repository. +You’ll see remote projects when you are new to the team and are accessing a shared project, remove a project from Docker Desktop, or access Docker Desktop from a new device after creating a project associated with a Git repository. To open an existing remote project, you can choose between: - Cloning the project into a local destination. - Linking to an existing folder where the project has already been cloned + +## What's next? + + - [View your project](/manuals/projects/view.md) + - [Add or edit your run commands](/manuals/projects/edit.md) + - [Manage your projects](/manuals/projects/manage.md) diff --git a/content/manuals/projects/share.md b/content/manuals/projects/share.md index 7b1fe28d1c1..64b330bfbee 100644 --- a/content/manuals/projects/share.md +++ b/content/manuals/projects/share.md @@ -6,4 +6,22 @@ keywords: TBD weight: 60 --- -Incoming.. \ No newline at end of file +Docker Projects makes it easy for teams to share, manage, and collaborate on containerized applications. + +Collaboration is managed by associating a project with a Docker organization, and leveraging cloud-stored configurations. This allows team members to easily access and work on the same project without needing extensive manual setup. + +Once a project is associated with an organization, other team members can access it by: + +1. Signing into Docker Desktop and navigating to **Projects**. + +2. Selecting the correct organization tab. + +3. Selecting the project from the list of shared projects. + +4. Cloning the project into a local destination. + +## What's next + + - [View your project](/manuals/projects/view.md) + - [Add or edit your run commands](/manuals/projects/edit.md) + - [Manage your projects](/manuals/projects/manage.md) diff --git a/content/manuals/projects/view.md b/content/manuals/projects/view.md index c9c5b76f871..fcf01a9a3a4 100644 --- a/content/manuals/projects/view.md +++ b/content/manuals/projects/view.md @@ -5,25 +5,76 @@ keywords: containers, docker projects, local, remote, docker desktop weight: 30 --- +## View a project’s README -View a project’s readme -If a project has a readme file, you can view it via Docker Projects. Note that the README tab is only visible if the project has a readme file. -To view a project’s readme: -Open a new or existing project. -Select the README tab.. -View logs for a project -Open a new or existing project. -Select the Logs tab to see all project logs. -Optionally, use the menu in the top right corner of the logs to copy the logs to your clipboard or clear the logs. +If a project has a README file, you can view it via Docker Projects. Note that the README tab is only visible if the project has a README file. + +To view a project’s README, open a new or existing project and then select the README tab. + +## View logs for a project + +1. Open a new or existing project. + +2. Select the **Logs** tab to see all project logs. + +3. Optionally, use the menu in the top right corner of the logs to copy the logs to your clipboard or clear the logs. ## View service-level information With Docker Projects, you can view the following information about your containers within your project: - Logs + - Image - Files - Network - Environment variables -From the Exec tab, you can use the integrated terminal, on a running container, directly within Docker Desktop. You are able to quickly run commands within your container so you can understand its current state or debug when something goes wrong. +From the **Exec** tab, you can use the integrated terminal, on a running container, directly within Docker Desktop. You are able to quickly run commands within your container so you can understand its current state or debug when something goes wrong. + +### Logs + +Select **Logs** to see logs from the containers in your project. You can also: + +- Use `Cmd + f`/`Ctrl + f` to open the search bar and find specific entries. + Search matches are highlighted in yellow. +- Press `Enter` or `Shift + Enter` to jump to the next or previous search match + respectively. +- Use the **Copy** icon in the top right-hand corner to copy all the logs to + your clipboard. +- Automatically copy any logs content by highlighting a few lines or a section + of the logs. +- Use the **Clear terminal** icon in the top right-hand corner to clear the + logs terminal. +- Select and view external links that may be in your logs. + +### Image + +The **Image** tab in Docker Projects provides details about the Docker image associated with a service. It helps you verify which image is being used, when it was last built, and where the corresponding Dockerfile is located. + +It also provides quick access to inspect the image or open the Dockerfile for modifications. + +### Files + +Select **Files** to explore the filesystem of running or stopped containers in your project. You +can also: + +- See which files have been recently added, modified, or deleted +- Edit a file straight from the built-in editor +- Drag and drop files and folders between the host and the container +- Delete unnecessary files when you right-click on a file +- Download files and folders from the container straight to the host + +### Network + +The **Network** tab in Docker Projects provides an overview of how the containerized services communicate with each other and the host system. It displays the assigned network name, connected services, and mapped container ports. + +If a service is mapped to a host port, you can select the link to open it in a browser + +### Environment variables + +The **Env** tab in Docker Projects displays the environment variables available to a service. These variables help configure the runtime environment without modifying the container image. + +## What's next? + - [Add or edit your run commands](/manuals/projects/edit.md) + - [Manage your projects](/manuals/projects/manage.md)