You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin/workspace-management/cvms/images.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ experience, use [systemd](#systemd) and register the `docker` service so
41
41
`dockerd` runs automatically during initialization.
42
42
43
43
The following snippet shows how your image can register the `docker` services in
44
-
its Dockerfile.
44
+
its Dockerfile. For a full example, [see our `enterprise-base` image for a full example](https://github.com/coder/enterprise-images/blob/main/images/base/Dockerfile.ubuntu).
45
45
46
46
```Dockerfile
47
47
FROM ubuntu:20.04
@@ -59,6 +59,21 @@ RUN systemctl enable docker
59
59
60
60
# use systemd as the init
61
61
RUN ln -s /lib/systemd/systemd /sbin/init
62
+
63
+
# Add docker-compose
64
+
RUN curl -L "https://github.com/docker/compose/releases/download/2.4.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
65
+
&& chmod +x /usr/local/bin/docker-compose
66
+
67
+
# Add a user `coder` so that you're not developing as the `root` user
0 commit comments