vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Not loading the correct image id from image?

Open cyberdecker opened this issue 7 years ago • 2 comments

Not sure if it is a bug or I misunderstood something. Running on Ubuntu 18.04 with VS Code (version 1.35.0) and Remote Development extension (version 0.59.0). I have the following devcontainer.json:

// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
	"name": "Load image",
	"context": "..",
	"image": "my-custom-image:some-tag",
	"runArgs": [ 		
		"--cap-add=SYS_PTRACE",
                "--security-opt",
		"seccomp=unconfined",
		"-e", "REPO_TOKEN=${env.REPO_TOKEN}",
		"-e", "BUILD_CONFIGURATION=Debug",
		"--entrypoint","/bin/bash"
	],
	"extensions": ["ms-vscode.cpptools"],
	"workspaceFolder": "/src/remoteproject",
	"workspaceMount": "source=/home/user/source/workplace,destination=/src/remoteproject,type=bind"	
}

When I click on Reopen Folder in Container, it yields the following error:

Setting up container for folder: /home/user/source/workplace
Run: docker exec mycustom-id test -d /root/.vscode-server
Error response from daemon: Container mycustom-id is not running
Run: docker exec mycustom-id test -d /root/.vscode-remote
Error response from daemon: Container mycustom-id is not running
Run: docker exec mycustom-id /bin/sh -c set -o noclobber ; mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
Error response from daemon: Container mycustom-id is not running
Run: docker exec mycustom-id /bin/sh -c (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
Error response from daemon: Container mycustom-id is not running
Run: docker exec mycustom-id test -d /root/.vscode-server/bin/553cfb2c2205db5f15f3ee8395bbd5cf066d357d
Error response from daemon: Container mycustom-id is not running
Installing VS Code Server for commit 553cfb2c2205db5f15f3ee8395bbd5cf066d357d
Run: docker exec mycustom-id mkdir -p /root/.vscode-server/bin/553cfb2c2205db5f15f3ee8395bbd5cf066d357d_1560264364193
Error response from daemon: Container mycustom-id is not running

When I run the command docker images to see the current image running, the image id is different from mycustom-id. I thought that the extension would catch the correct id from the already running image (that I previously started from terminal).

cyberdecker avatar Jun 11 '19 15:06 cyberdecker

Try removing "--entrypoint","/bin/bash". Does that work?

chrmarti avatar Jun 18 '19 14:06 chrmarti

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

vscodebot[bot] avatar Jun 25 '19 15:06 vscodebot[bot]