File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
examples/templates/docker-devcontainer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ resource "coder_agent" "main" {
54
54
fi
55
55
56
56
if [ "$${CODER_AGENT_URL#*host.docker.internal}" != "$CODER_AGENT_URL" ]; then
57
- # Start the docker service if it is not running, this will create
58
- # the "docker0" interface if it does not exist.
59
- sudo service docker start
60
-
61
57
# If the access URL is host.docker.internal, we set up forwarding
62
58
# to the host Docker gateway IP address, which is typically
63
59
# 172.17.0.1, this will allow the devcontainers to access the
@@ -85,6 +81,10 @@ resource "coder_agent" "main" {
85
81
;;
86
82
esac
87
83
84
+ # Start the docker service if it is not running, this will create
85
+ # the "docker0" interface if it does not exist.
86
+ sudo service docker start
87
+
88
88
# Since we cannot define "--add-host" for devcontainers, we define
89
89
# a dnsmasq configuration that allows devcontainers to resolve the
90
90
# host.docker.internal URL to this workspace, which is typically
You can’t perform that action at this time.
0 commit comments