docker-vscode icon indicating copy to clipboard operation
docker-vscode copied to clipboard

Container exits without launching VSCode

Open alycda opened this issue 6 years ago • 1 comments

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

alycda avatar Aug 03 '18 23:08 alycda

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

allamand avatar Aug 08 '18 09:08 allamand