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
.