System: ArchLinux 64bit, IP address: 10.32.1.18.
Build
sudo docker -p 8080:8080 --name myjenkins jenkins
Now you can access jenkins server in browser.
List running containers: sudo docker ps
(so you can get the container's name for stoping and restarting later);
Stop jenkins server: sudo docker stop myjenkins
;
Restart this server: sudo docker start myjenkins
;
Backup and Restore
Backup image: sudo docker save -o jenkins-docker.tar jenkins
;
Restore image: sudo docker load -i jenkins-docker.tar
;
Backup container:
(optional) sudo docker stop jenkins
sudo docker export myjenkins > mybvt-system.tar
scp mybvt-system.tar chad@laptop:~/
ssh chad@laptop
cat mybvt-system.tar | sudo docker import - exampleimagelocal:new
But where is the imported container?