Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit343d1c1

Browse files
committed
fix order
1 parentcc61eff commit343d1c1

File tree

1 file changed

+4
-4
lines changed
  • examples/templates/docker-devcontainer

1 file changed

+4
-4
lines changed

‎examples/templates/docker-devcontainer/main.tf‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ resource "coder_agent" "main" {
5454
fi
5555
5656
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-
6157
# If the access URL is host.docker.internal, we set up forwarding
6258
# to the host Docker gateway IP address, which is typically
6359
# 172.17.0.1, this will allow the devcontainers to access the
@@ -85,6 +81,10 @@ resource "coder_agent" "main" {
8581
;;
8682
esac
8783
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+
8888
# Since we cannot define "--add-host" for devcontainers, we define
8989
# a dnsmasq configuration that allows devcontainers to resolve the
9090
# host.docker.internal URL to this workspace, which is typically

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp