I am reusing an image, and did a commit.
$ sudo docker images
[sudo] password for pt008300:
REPOSITORY TAG IMAGE ID CREATED SIZE
fedorawasdebug version3 d23b147131f6 2 weeks ago 39.2 GB
fedorawasdebug version2 001462545456 3 weeks ago 35.1 GB
docker.io/kgibm/fedorawasdebug latest 99bb564492a4 4 months ago 33.8 GB
docker.io/hello-world latest fce289e99eb9 16 months ago 1.84 kB
When I try to run the commited image:
sudo docker run --cap-add SYS_PTRACE --cap-add NET_ADMIN --ulimit core=-1 --ulimit memlock=-1 --ulimit stack=-1 --shm-size="256m" --rm -p 122:22 -p 5902:5902 -it fedorawasdebug:version3
I have problems:
Warning: 4ca840e16811:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server 4ca840e16811:1
A VNC server is already running as :1
My question is, what is the right procedure after commit an image to stop it and start from the committed version?