Skip to content

Instantly share code, notes, and snippets.

@shyim
Created January 4, 2020 11:52
Show Gist options
  • Save shyim/1fcb353a9ff9f1dac57a5f1465230df1 to your computer and use it in GitHub Desktop.
Save shyim/1fcb353a9ff9f1dac57a5f1465230df1 to your computer and use it in GitHub Desktop.
Develop in Docker Container
docker run \
    --privileged \
    -d \
    --name vm-docker \
    docker:18.09.7-dind

docker run \
    --name vm \
    -d \
    --link vm-docker:docker \
    -e DOCKER_HOST=tcp://docker:2375 \
    -e VNC_RESOLUTION=1920x1080 \
    -e VNC_PW=MYPW \
    --shm-size=256m \
    -p 5901:5901 \
    -p 6901:6901 \
    consol/ubuntu-icewm-vnc

VNC Client can connect using port 5901, 6901 is web vnc Client

I joined later into the container and installed things like docker cli. docker exec -it -u0 vm bash and created for me a new Image. Also i did mounted a folder for the home folder. The home folder is at /headless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment