Skip to content

Commit b90158c

Browse files
authored
Engdocs 2428 (#22068)
<!--Delete sections as needed --> ## Description Adds new feature ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 86571a5 commit b90158c

File tree

10 files changed

+437
-0
lines changed

10 files changed

+437
-0
lines changed

content/manuals/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ params:
5959
description: Run integration tests, with real dependencies, in the cloud.
6060
icon: package_2
6161
link: https://testcontainers.com/cloud/docs/
62+
- title: Docker Projects
63+
description: Use a unified, project-based workflow to run your containerized projects.
64+
icon: folder
65+
link: /projects/
6266
platform:
6367
- title: Administration
6468
description: Centralized observability for companies and organizations.

content/manuals/projects/_index.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Docker Projects
3+
params:
4+
sidebar:
5+
group: Products
6+
badge:
7+
color: blue
8+
text: Beta
9+
weight: 50
10+
description: Learn how to use Docker Projects which provides a unified, project-based workflow to run your containerized projects.
11+
keywords: Docker, projects, docker deskotp, containerization
12+
grid:
13+
- title: How Docker Projects works
14+
description: Learn How Docker Projects works
15+
icon: category
16+
link: /projects/about/
17+
- title: Open a new project
18+
description: Learn how to open a new local or remote projects.
19+
icon: checklist
20+
link: /projects/open/
21+
- title: Edit your project
22+
description: Edit your project's run commands and setup. N
23+
icon: design_services
24+
link: /projects/edit/
25+
- title: Manage your projects
26+
description: Run or remove your projects.
27+
icon: tune
28+
link: /projects/manage/
29+
- title: View your projects
30+
description: View detailed information about your projects and services within your projects
31+
icon: visibility
32+
link: /projects/view/
33+
- title: FAQs
34+
description: View common FAQs about Docker Projects
35+
icon: help
36+
link: /projects/faq/
37+
---
38+
39+
{{< summary-bar feature_name="Docker Projects" >}}
40+
41+
Docker Projects provides a simplified, project-based workflow for running and managing containerized applications. It organizes your code, configurations, and logs across local and cloud environments into a single view, making it easy to collaborate and share across teams.
42+
43+
A project organizes your code and Docker artifacts into a single object. These artifacts include logs as well as customizable run commands. These artifacts can persist remotely in the cloud, which lets you access your projects from any device that has Docker Desktop.
44+
45+
### Key features and benefits
46+
47+
- One-click project setup: Open a local folder or clone a Git repository and run your project instantly.
48+
- Minimal Docker expertise required: Ideal for both beginners and experienced developers.
49+
- Custom `run` commands for your projects: Define and store pre-configured `run` commands that are equivalent to running `docker compose up`.
50+
- Local and remote projects: Work on projects locally or sync artifacts to the cloud for cross-device access and easy collaboration.
51+
52+
{{< grid >}}

content/manuals/projects/about.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: How it works
3+
description: Understand how Docker Projects works
4+
keywords: docker projects
5+
weight: 10
6+
---
7+
8+
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.
9+
10+
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.
11+
12+
Docker Projects works as follows:
13+
14+
1. Create or open a project. You can:
15+
16+
- Open a local project: Select a folder on your machine that contains your project code.
17+
- Clone a Git repository: Provide a repository URL and clone the project into a local directory.
18+
19+
Once a project is opened, Docker Desktop detects the Compose file and prepares the project for execution.
20+
21+
2. Configure and run your project with pre-configured commands. These commands:
22+
23+
- Work like `docker compose up`, launching services based on the Compose file.
24+
- Can be customized with additional flags, multiple Compose files, and environment variables.
25+
- Enable pre-run tasks, such as executing scripts before starting the services.
26+
27+
All of which means you can fine-tune your configurations without manually running complex CLI commands.
28+
29+
3. Collaborate and share with teams. For projects linked to a Git repository, Docker Projects stores artifacts in the cloud, enabling easy collaboration:
30+
31+
- Work across devices: Open a project from any machine and instantly access stored configurations.
32+
- Share configurations: Team members can access pre-defined run commands, reducing setup time.
33+
34+
Collaboration is easy — new developers can join a team, open a project, and start working without complex setup steps.
35+
36+
4. Manage and iterate. Once a project is up and running, Docker Projects makes it easy to monitor, update, and troubleshoot:
37+
38+
- View logs to debug issues and track service activity.
39+
- Edit configurations and run commands as requirements change.
40+
41+
## What's next
42+
43+
- [Learn how to open a new project](/manuals/projects/open.md)
44+
- [Explore common FAQs](/manuals/projects/faq.md)
45+

content/manuals/projects/edit.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Add or edit your run commands
3+
description: Learn how to add or edit your run commands in Docker Projects
4+
keywords: Docker, projects, docker deskotp, containerization, open, remote, local, run commands
5+
weight: 40
6+
---
7+
8+
## Add a run command to a project
9+
10+
1. Open an existing project and ensure that it is stopped.
11+
12+
2. From the command drop-down menu, select **New run command**.
13+
14+
3. Specify the following information for the run command:
15+
16+
> [!TIP]
17+
>
18+
> 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.
19+
20+
- **Name**: Specify a name to identify the run command.
21+
- **Compose files**: Select one or more Compose files from your project.
22+
- **Flags**: Optionally, select one or more flags for your run command.
23+
24+
> [!TIP]
25+
>
26+
> 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.
27+
28+
- **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.
29+
- **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.
30+
31+
4. Select **Save changes**.
32+
33+
You can now select the new run command from the drop-down menu after opening the project.
34+
35+
## Edit a run command
36+
37+
1. Open an existing project and ensure that it is stopped.
38+
39+
2. Select the run command you want to change from the command drop-down menu.
40+
41+
3. Select the **Edit** icon next to the **Run** button.
42+
43+
4. Specify your changes and then select **Save changes**.
44+
45+
## What's next?
46+
47+
- [Manage your projects](/manuals/projects/manage.md)

content/manuals/projects/faq.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Docker Projects FAQs
3+
linkTitle: FAQs
4+
description: Find common FAQs for Docker Projects
5+
keywords: faqs, docker projects, local, remote
6+
weight: 70
7+
---
8+
9+
## Why is a Compose file required?
10+
11+
A Compose file (`compose.yml`) defines how your application's containers should run together, including:
12+
13+
- Services (e.g., web, database, API)
14+
- Networks for inter-container communication
15+
- Volumes for persistent data storage
16+
- Environment variables and configurations
17+
18+
Without a Compose file, Docker Projects doesn't have a way to understand how your application should be structured or executed.
19+
20+
## What if my project doesn’t have a Compose file?
21+
22+
If your project doesn't include a `compose.yml` file, you need to create one before opening it in Docker Projects.

content/manuals/projects/manage.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Manage your projects
3+
description: Learn how to delete or completely remove a project.
4+
keywords: Docker, projects, docker deskotp, containerization, open, remote, local
5+
weight: 50
6+
---
7+
8+
## Run a project or service
9+
10+
1. Open a new or existing project.
11+
12+
2. Select a run command from the drop-down menu.
13+
14+
3. Select the **Run** button for the project or the **Play** button next to the service you'd like to run.
15+
16+
## Stop or restart a project or service
17+
18+
1. Open an existing project that is running.
19+
20+
2. Select the **Stop** or **Restart** button for the project or the appropriate button next to the service.
21+
22+
## Remove a project from Docker Desktop
23+
24+
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.
25+
26+
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.
27+
None of your local code is deleted when removing a project from Docker Desktop.
28+
29+
To remove a project from Docker Desktop:
30+
31+
1. Sign in to Docker Desktop, and go to **Projects**.
32+
33+
2. Select the **More actions** menu next to the project, and then select **Remove from Docker Desktop**.
34+
35+
## Delete a project
36+
37+
Deleting a project removes it from Docker Desktop and deletes all configuration locally and remotely from the cloud. When a project is deleted, you can no longer run the project from the **Projects** view. None of your local code is deleted when you delete a project from Docker Desktop.

content/manuals/projects/open.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
title: Open a new project
3+
description: Learn how to open a new local or remote project, or an existing project in Docker Projects.
4+
keywords: Docker, projects, docker deskotp, containerization, open, remote, local
5+
weight: 20
6+
---
7+
8+
> [!IMPORTANT]
9+
>
10+
> To use Docker Projects, you must enable the **Access experimental features** setting in Docker Desktop. See [Features in development](/manuals/desktop/settings-and-maintenance/settings.md#features-in-development) for more information.
11+
12+
## New projects
13+
14+
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.
15+
16+
### Open a new local project
17+
18+
A project consists of your code and at least one Compose file. Ensure that you have a Compose file before trying to open a new project.
19+
20+
To open a new project:
21+
22+
1. Sign in to Docker Desktop, and go to **Projects**.
23+
24+
2. Select **Open a local folder**. This lets you select a local folder that contains your project’s code and a Compose file.
25+
26+
> [!NOTE]
27+
>
28+
> A local folder can also be the folder of a Git repository that you have already cloned.
29+
30+
3. Configure your project by giving it a name and setting the owner, then select **Next**.
31+
32+
> [!NOTE]
33+
>
34+
> If you are part of a Docker organization you have the option to [share your project](share.md) with the organization.
35+
36+
4. Specify how to run your project by selecting **New run command**:
37+
38+
> [!TIP]
39+
>
40+
> 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.
41+
42+
- **Name**: Specify a name to identify the run command.
43+
- **Compose files**: Select one or more Compose files from your project.
44+
- **Flags**: Optionally, select one or more flags for your run command.
45+
46+
> [!TIP]
47+
>
48+
> 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.
49+
50+
- **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.
51+
- **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.
52+
53+
5. Select **Save changes**.
54+
55+
Your project is now ready to run.
56+
57+
### Open a new remote project
58+
59+
The following steps prompt you to clone the Git repository for your project.
60+
61+
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.
62+
63+
To clone and open a remote project:
64+
65+
1. Sign in to Docker Desktop, and go to **Projects**.
66+
67+
2. Select **Clone a git repository**. This lets you specify a Git repository and a local folder to clone that repository to. The repository must contain at least your project’s code and a Compose file.
68+
69+
3. Enter the remote source and choose the local destination to clone to.
70+
71+
4. Select **Clone project**.
72+
73+
5. Configure your project by giving it a name and setting the owner, then select **Next**.
74+
75+
> [!NOTE]
76+
>
77+
> If you are part of a Docker organization you have the option to [share your project](share.md) with the organization.
78+
79+
6. Specify how to run your project by selecting **New run command**:
80+
81+
> [!TIP]
82+
>
83+
> 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.
84+
85+
- **Name**: Specify a name to identify the run command.
86+
- **Compose files**: Select one or more Compose files from your project.
87+
- **Flags**: Optionally, select one or more flags for your run command.
88+
89+
> [!TIP]
90+
>
91+
> 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.
92+
93+
- **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.
94+
- **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.
95+
96+
7. Select **Save changes**.
97+
98+
## Existing projects
99+
100+
### Open an existing local project
101+
102+
1. Sign in to Docker Desktop, and go to **Projects**.
103+
104+
2. Open your project by selecting your project under **Recents**, or by selecting the specific owner that your project is associated with and then select your project.
105+
106+
### Open an existing remote project
107+
108+
In the **Projects** view in Docker Desktop, existing remote projects display **No local copy** under the project.
109+
110+
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.
111+
112+
To open an existing remote project, you can choose between:
113+
114+
- Cloning the project into a local destination.
115+
- Linking to an existing folder where the project has already been cloned
116+
117+
## What's next?
118+
119+
- [View your project](/manuals/projects/view.md)
120+
- [Add or edit your run commands](/manuals/projects/edit.md)
121+
- [Manage your projects](/manuals/projects/manage.md)

content/manuals/projects/share.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Share and collaborate on a project
3+
linkTitle: Collaborate
4+
description: Learn how to collaborate on a project
5+
keywords: collaborate, projects, docker desktop, local, remote
6+
weight: 60
7+
---
8+
9+
Docker Projects makes it easy for teams to share, manage, and collaborate on containerized applications.
10+
11+
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.
12+
13+
Once a project is associated with an organization, other team members can access it by:
14+
15+
1. Signing into Docker Desktop and navigating to **Projects**.
16+
17+
2. Selecting the correct organization tab.
18+
19+
3. Selecting the project from the list of shared projects.
20+
21+
4. Cloning the project into a local destination.
22+
23+
## What's next
24+
25+
- [View your project](/manuals/projects/view.md)
26+
- [Add or edit your run commands](/manuals/projects/edit.md)
27+
- [Manage your projects](/manuals/projects/manage.md)

0 commit comments

Comments
 (0)