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
What happened?
When I do subsequent (after initial up or recreate) runs of the workspace - it ignores runServices and starts ALL containers from docker-compose.yml, not only those specified.
If I do devpod up ... --recreate - it starts services as expected (as first start). But each next stop/up cycle - starts all unneeded containers.
What did you expect to happen instead?
On any up of the workspace to start only containers specified in runServices
How can we reproduce the bug? (as minimally and precisely as possible)
devpod up [email protected]:iJackUA/gitpod-devcontainer-test.git@main --id devpod-test --ide vscode
11:42:53 debug No pro instance available, skipping provider upgrade check
11:42:53 debug Acquire workspace lock...
11:42:53 debug Acquired workspace lock...
11:42:53 info Creating devcontainer...
11:42:53 debug Adding ssh keys to agent, disable via 'devpod context set-options -o SSH_ADD_PRIVATE_KEYS=false'
11:42:53 debug Inject and run command: '/tmp/ijackua/devpod/agent' helper ssh-server --stdio --debug
11:42:53 debug execute inject script
11:42:53 debug download agent from https://github.com/loft-sh/devpod/releases/download/v0.6.8
11:42:53 debug Run command provider command: ${SSH_PROVIDER} command
11:42:53 debug Run ssh-add /Users/ijackua/.ssh/id_ed25519
11:42:53 debug Run ssh-add /Users/ijackua/.ssh/personal_id_ed25519
11:42:53 debug Attempting to create SSH client
11:42:54 debug Received line after pong: done
11:42:55 debug SSH client created
11:42:56 debug SSH session created
11:42:56 debug Forwarding ssh-agent using /private/tmp/com.apple.launchd.0Nuy8ERuCl/Listeners
11:42:56 info No root required, because neither docker nor agent daemon needs to be installed
11:42:56 info Use /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test as workspace dir
11:42:56 debug Created logger
11:42:56 debug Received ping from agent
11:42:56 debug Credentials server started on port 14898...
11:42:57 debug Incoming client connection at /
11:42:57 debug Credentials server started...
11:42:57 debug Wrote docker credentials helper to /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/.cache/yzybrqdbrlaw/docker-credential-devpod
11:42:57 debug Create content folder /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content
11:42:57 info Clone repository
11:42:57 info URL: [email protected]:iJackUA/gitpod-devcontainer-test.git
11:42:58 info Branch: main
11:43:00 debug Cloning into '/home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content'...
11:43:00 done Successfully cloned repository
11:43:00 debug remote: Enumerating objects: 10, done.
11:43:00 info Configuring docker daemon ...
11:43:00 warn Could not find docker daemon config file, if using the registry cache, please ensure the daemon is configured with containerd-snapshotter=true
remote: Counting objects: 100% (10/10), done. (1/10)
11:43:00 warn More info at https://docs.docker.com/engine/storage/containerd/
remote: Compressing objects: 100% (7/7), done. % (1/7)
11:43:00 debug Using docker command 'docker'
11:43:00 debug remote: Total 10 (delta 0), reused 7 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (10/10), done. (1/10)
11:43:00 debug Loading docker compose project [/home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/docker-compose.yml /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/.devcontainer/docker-compose.yml]
11:43:00 debug Loaded project default-de-1b1f7
11:43:02 debug Incoming client connection at /docker-credentials
11:43:02 debug Received docker credentials post data: {"ServerURL":"index.docker.io/library/alpine"}
11:43:02 debug Successfully wrote back 72 bytes
11:43:02 debug Incoming client connection at /docker-credentials
11:43:02 debug Received docker credentials post data: {"ServerURL":"https://index.docker.io/v1/"}
11:43:02 debug Successfully wrote back 86 bytes
11:43:03 debug Run docker --project-name default-de-1b1f7 -f /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/docker-compose.yml -f /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/.devcontainer/docker-compose.yml build web db
11:43:05 info #0 building with "default" instance using docker driver
11:43:05 info
11:43:05 debug Incoming client connection at /docker-credentials
11:43:05 info #1 [web internal] load build definition from Dockerfile
11:43:05 debug Received docker credentials post data: {"ServerURL":"https://index.docker.io/v1/"}
11:43:05 info #1 transferring dockerfile: 76B done
11:43:05 info #1 DONE 0.0s
11:43:05 debug Successfully wrote back 86 bytes
11:43:05 info
11:43:06 info #2 [web internal] load metadata for docker.io/library/alpine:3.20
11:43:06 info #2 ...
11:43:06 info
11:43:06 info #3 [web auth] library/alpine:pull token for registry-1.docker.io
11:43:06 info #3 DONE 0.0s
11:43:06 info
11:43:06 info #2 [web internal] load metadata for docker.io/library/alpine:3.20
11:43:07 info #2 DONE 1.8s
11:43:07 info
11:43:07 info #4 [web internal] load .dockerignore
11:43:07 info #4 transferring context: 2B done
11:43:07 info #4 DONE 0.0s
11:43:07 info
11:43:07 info #5 [web 1/2] FROM docker.io/library/alpine:3.20@sha256:31687a2fdd021f85955bf2d0c2682e9c0949827560e1db546358ea094f740f12
11:43:07 info #5 resolve docker.io/library/alpine:3.20@sha256:31687a2fdd021f85955bf2d0c2682e9c0949827560e1db546358ea094f740f12 0.0s done
11:43:07 info #5 sha256:66a3d608f3fa52124f8463e9467f170c784abd549e8216aa45c6960b00b4b79b 0B / 3.63MB 0.2s
11:43:07 info #5 sha256:66a3d608f3fa52124f8463e9467f170c784abd549e8216aa45c6960b00b4b79b 3.63MB / 3.63MB 0.3s done
11:43:07 info #5 extracting sha256:66a3d608f3fa52124f8463e9467f170c784abd549e8216aa45c6960b00b4b79b
11:43:07 info #5 extracting sha256:66a3d608f3fa52124f8463e9467f170c784abd549e8216aa45c6960b00b4b79b 0.4s done
11:43:08 info #5 DONE 0.8s
11:43:08 info
11:43:08 info #6 [web 2/2] RUN echo "It works!"
11:43:08 info #6 0.445 It works!
11:43:08 info #6 DONE 0.5s
11:43:08 info
11:43:08 info #7 [web] exporting to image
11:43:08 info #7 exporting layers 0.1s done
11:43:08 info #7 exporting manifest sha256:3bba8c95f79d83d2a569a342f4f106d443b4a579f5fa5a22f773ed5012d3e611
11:43:08 info #7 exporting manifest sha256:3bba8c95f79d83d2a569a342f4f106d443b4a579f5fa5a22f773ed5012d3e611 0.0s done
11:43:09 info #7 exporting config sha256:9c7e93387ffdd35c090bd09018c22c8f7eb725b4ef1cba5d52d09cccc3fbbb64 0.0s done
11:43:09 info #7 exporting attestation manifest sha256:8a42486c0f681fc03a5d42786a778435a8ea860a1bf1700bce9ecf024c0abf3f
11:43:09 info #7 exporting attestation manifest sha256:8a42486c0f681fc03a5d42786a778435a8ea860a1bf1700bce9ecf024c0abf3f 0.1s done
11:43:09 info #7 exporting manifest list sha256:c1a1657ab03798fb9afda0ab76eb8c2829b9ad76afc7463780a2ebc5d28984bf 0.0s done
11:43:09 info #7 naming to docker.io/library/default-de-1b1f7-web:latest done
11:43:09 info #7 unpacking to docker.io/library/default-de-1b1f7-web:latest 0.0s done
11:43:09 info #7 DONE 0.4s
11:43:09 info
11:43:09 info #8 [web] resolving provenance for metadata file
11:43:09 info #8 DONE 0.0s
11:43:10 debug Creating docker-compose up /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/.docker-compose/docker-compose.devcontainer.containerFeatures-10.yml with content:
services:
web:
entrypoint:
- /bin/sh
- -c
- |-
echo Container started
trap "exit 0" 15
exec "$$@"
while sleep 1 & wait $$!; do :; done
- '-'
labels:
dev.containers.id: default-de-1b1f7
devcontainer.metadata: '[{}]'
devpod.user: ""
11:43:10 info db Pulling
11:43:10 debug Incoming client connection at /docker-credentials
11:43:10 debug Received docker credentials post data: {"ServerURL":"https://index.docker.io/v1/"}
11:43:11 debug Successfully wrote back 86 bytes
11:43:12 info db Pulled
11:43:12 info Network default-de-1b1f7_default Creating
11:43:12 info Network default-de-1b1f7_default Created
11:43:13 info Container default-de-1b1f7-web-1 Creating
11:43:13 info Container default-de-1b1f7-db-1 Creating
11:43:13 info Container default-de-1b1f7-web-1 Created
11:43:13 info Container default-de-1b1f7-db-1 Created
11:43:13 info Container default-de-1b1f7-web-1 Starting
11:43:13 info Container default-de-1b1f7-db-1 Starting
11:43:13 info Container default-de-1b1f7-web-1 Started
11:43:14 info Container default-de-1b1f7-db-1 Started
11:43:14 debug execute inject script
11:43:14 debug Received line after pong: ARM-false
11:43:14 debug Inject binary
11:43:15 debug Done injecting binary
11:43:15 debug done exec
11:43:15 debug done injecting
11:43:15 debug done inject
11:43:15 debug Done InjectAgentAndExecute
11:43:15 debug Injected into container
11:43:15 info Setup container...
11:43:16 debug Attempting to create SSH client
11:43:16 debug Inject and run command: '/usr/local/bin/devpod' helper ssh-server --stdio --debug
11:43:16 debug SSH client created
11:43:16 debug SSH session created
11:43:17 debug Forwarding ssh-agent using /tmp/auth-agent3475240531/listener.sock
11:43:17 info Execute SSH server command: sh -c '/usr/local/bin/devpod' agent container setup --setup-info 'H4sIA...............................QIAAA==' --chown-workspace --inject-git-credentials --debug
11:43:17 debug Created logger
11:43:17 debug Received ping from agent
11:43:17 debug Start setting up container...
11:43:17 error Error configuring git credentials: git not found
11:43:17 info Chown projects...
11:43:17 debug Patch etc environment & profile...
11:43:17 debug Run lifecycle hooks commands...
11:43:17 debug running user env probe with shell "sh", probe "loginInteractiveShell", user "root" and command "cat /proc/self/environ"
11:43:17 debug Done setting up environment
11:43:17 debug Setup stable...
11:43:18 debug Install apk requirements...
11:43:25 debug Connection to SSH Server closed
11:43:25 debug Done setting up container
11:43:25 debug Done executing ssh server helper command
11:43:25 debug Connection to SSH Server closed
11:43:25 debug done inject
11:43:25 debug done injecting
11:43:25 debug Done InjectAgentAndExecute
11:43:25 debug Done executing ssh server helper command
11:43:25 debug Done creating devcontainer
11:43:25 debug done exec
11:43:25 info Run 'ssh devpod-test.devpod' to ssh into the devcontainer
11:43:25 debug No dotfiles repo specified, skipping
11:43:25 info Starting stable...
11:43:26 debug Run stable command code --disable-extension ms-vscode-remote.remote-containers --new-window --folder-uri=vscode-remote://ssh-remote+devpod-test.devpod//app
devpod stop devpod-test
11:56:43 debug Acquire workspace lock...
11:56:43 debug Acquired workspace lock...
11:56:43 info Stopping container...
11:56:43 debug Run command provider command: ${SSH_PROVIDER} command
11:56:56 info Successfully stopped container...
devpod up devpod-test
11:51:22 info Workspace devpod-test already exists
11:51:22 debug No pro instance available, skipping provider upgrade check
11:51:22 debug Acquire workspace lock...
11:51:22 debug Acquired workspace lock...
11:51:22 info Creating devcontainer...
11:51:22 debug Adding ssh keys to agent, disable via 'devpod context set-options -o SSH_ADD_PRIVATE_KEYS=false'
11:51:22 debug Inject and run command: '/tmp/ijackua/devpod/agent' helper ssh-server --stdio --debug
11:51:22 debug execute inject script
11:51:22 debug download agent from https://github.com/loft-sh/devpod/releases/download/v0.6.8
11:51:22 debug Run command provider command: ${SSH_PROVIDER} command
11:51:22 debug Run ssh-add /Users/ijackua/.ssh/id_ed25519
11:51:22 debug Run ssh-add /Users/ijackua/.ssh/personal_id_ed25519
11:51:22 debug Attempting to create SSH client
11:51:23 debug Received line after pong: done
11:51:24 debug SSH client created
11:51:24 debug SSH session created
11:51:24 debug Forwarding ssh-agent using /private/tmp/com.apple.launchd.0Nuy8ERuCl/Listeners
11:51:25 info No root required, because neither docker nor agent daemon needs to be installed
11:51:25 info Use /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test as workspace dir
11:51:25 debug Created logger
11:51:25 debug Received ping from agent
11:51:25 debug Credentials server started on port 16188...
11:51:26 debug Incoming client connection at /
11:51:26 debug Credentials server started...
11:51:26 debug Wrote docker credentials helper to /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/.cache/jpuuslkaoeph/docker-credential-devpod
11:51:26 debug Workspace Folder already exists /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content
11:51:26 debug Workspace exists, skip downloading
11:51:26 info Configuring docker daemon ...
11:51:26 warn Could not find docker daemon config file, if using the registry cache, please ensure the daemon is configured with containerd-snapshotter=true
11:51:26 warn More info at https://docs.docker.com/engine/storage/containerd/
11:51:27 debug Using docker command 'docker'
11:51:27 debug Loading docker compose project [/home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/docker-compose.yml /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/.devcontainer/docker-compose.yml]
11:51:27 debug Loaded project default-de-1b1f7
11:51:28 debug Found existing project files: [/home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/docker-compose.yml /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/content/.devcontainer/docker-compose.yml /home/ijackua/.devpod/agent/contexts/default/workspaces/devpod-test/.docker-compose/docker-compose.devcontainer.containerFeatures-10.yml]
11:51:29 info Container default-de-1b1f7-sidecar1-1 Created
11:51:30 info Container default-de-1b1f7-web-1 Created
11:51:30 info Container default-de-1b1f7-sidecar2-1 Created
11:51:30 info Container default-de-1b1f7-db-1 Created
11:51:30 info Container default-de-1b1f7-db-1 Starting
11:51:30 info Container default-de-1b1f7-sidecar1-1 Starting
11:51:30 info Container default-de-1b1f7-sidecar2-1 Starting
11:51:30 info Container default-de-1b1f7-web-1 Starting
11:51:31 info Container default-de-1b1f7-db-1 Started
11:51:31 info Container default-de-1b1f7-sidecar2-1 Started
11:51:31 info Container default-de-1b1f7-web-1 Started
11:51:31 info Container default-de-1b1f7-sidecar1-1 Started
11:51:31 debug execute inject script
11:51:32 debug Received line after pong: done
11:51:32 debug done exec
11:51:32 debug done injecting
11:51:32 debug done inject
11:51:32 debug Done InjectAgentAndExecute
11:51:32 debug Injected into container
11:51:32 info Setup container...
11:51:32 debug Attempting to create SSH client
11:51:32 debug Inject and run command: '/usr/local/bin/devpod' helper ssh-server --stdio --debug
11:51:33 debug SSH client created
11:51:33 debug SSH session created
11:51:33 debug Forwarding ssh-agent using /tmp/auth-agent925301271/listener.sock
11:51:34 info Execute SSH server command: sh -c '/usr/local/bin/devpod' agent container setup --setup-info 'H4sIAAAAAA...............AAAP//AQAA//+dfzyXJAIAAA==' --chown-workspace --inject-git-credentials --debug
11:51:34 debug Created logger
11:51:34 debug Received ping from agent
11:51:34 debug Start setting up container...
11:51:34 debug Credentials server started on port 16863...
11:51:35 debug Incoming client connection at /
11:51:35 debug Credentials server started...
11:51:35 debug Patch etc environment & profile...
11:51:35 debug Run lifecycle hooks commands...
11:51:35 debug running user env probe with shell "sh", probe "loginInteractiveShell", user "root" and command "cat /proc/self/environ"
11:51:35 debug Done setting up environment
11:51:35 debug Setup stable...
11:51:35 debug Unset setup system credential helper
11:51:36 debug Connection to SSH Server closed
11:51:36 debug Done setting up container
11:51:36 debug Done executing ssh server helper command
11:51:36 debug done inject
11:51:36 debug done injecting
11:51:36 debug Done InjectAgentAndExecute
11:51:36 debug Connection to SSH Server closed
11:51:36 debug Done executing ssh server helper command
11:51:36 debug Done creating devcontainer
11:51:36 debug done exec
11:51:36 info Run 'ssh devpod-test.devpod' to ssh into the devcontainer
11:51:36 debug No dotfiles repo specified, skipping
11:51:36 info Starting stable...
11:51:36 debug Run stable command code --disable-extension ms-vscode-remote.remote-containers --new-window --folder-uri=vscode-remote://ssh-remote+devpod-test.devpod//app
The text was updated successfully, but these errors were encountered:
What happened?
When I do subsequent (after initial
up
or recreate) runs of the workspace - it ignoresrunServices
and starts ALL containers from docker-compose.yml, not only those specified.If I do
devpod up ... --recreate
- it starts services as expected (as first start). But each next stop/up cycle - starts all unneeded containers.What did you expect to happen instead?
On any
up
of the workspace to start only containers specified inrunServices
How can we reproduce the bug? (as minimally and precisely as possible)
I have minimalistic repo with DevContainer and DockerCopomose where issue can be seen
https://github.com/iJackUA/gitpod-devcontainer-test/tree/main
Initial workspace up starts as expected:
web
,db
devpod up [email protected]:iJackUA/gitpod-devcontainer-test.git@main --id devpod-test --ide vscode
Stop: stops all containers as expected
devpod stop devpod-test
Run workspace again. It does UNEXPECTED, starts:
web
,db
,sidecar1
,sidecar2
devpod up devpod-test
Attach logs with
--debug
per each step belowMy
devcontainer.json
:Local Environment:
DevPod Provider:
Anything else we need to know?
devpod up [email protected]:iJackUA/gitpod-devcontainer-test.git@main --id devpod-test --ide vscode
devpod stop devpod-test
devpod up devpod-test
The text was updated successfully, but these errors were encountered: