docker-vscode
docker-vscode copied to clipboard
Container exits without launching VSCode
I have created the alias as you suggested (using double quotes instead of single). A container starts but exits. See the following errors from the container log:
You are connecting with User alycda
Creating user alycda
groupadd: GID '20' already exists
sudo: unable to resolve host vscode
reset default env
...
+ set +X
bash: line 18: set: +X: invalid option
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
Starting vscode vscode, code
there is a .bashrc we source it and launch code
Code a rendu la main..., we Exit
end of script
Hi Alyssa, what is your OS ?
You can try to debug the container by starting a fresh one without demon mode and bithout directly executing the entrypoint :
docker run -ti --net="host" --name=vscode -h vscode -e DISPLAY=$DISPLAY -e MYUID=$(id -u) -e MYGID=$(id -g) -e MYUSERNAME=$(id -un) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK -v $(dirname $SSH_AUTH_SOCK):$(dirname $SSH_AUTH_SOCK) -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME:$HOME -w $HOME sebmoule/docker-vscode bash
Then inside the container try to launch vscode :
/entrypoint.sh vscode