From 4a5ee5e7442e4789f459b1f50f25e14055bf1da0 Mon Sep 17 00:00:00 2001 From: Ben Mitchell Date: Sun, 23 Aug 2020 21:22:45 +0100 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6b792a5..54079dd 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,18 @@ docker start abc123xyz567 ``` +## Creating images: +``` +# You can create an image of a already configured and setup container. This allows you to effectively duplicate a system. +# To do this, run the following commands + +$ docker ps --all #make note of your container id +$ docker commit containerID newImageName + +# To run this image do the following +$ docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix newImageName +``` + # Troubleshooting libgtk permissions denied error, thanks @raoulh + @arsham