1. List docker containers:

[html]
docker ps
[/html]

2. Backup container

[html]
docker commit -p backup-name
[/html]

3. The backup image will be listed in the docker images list:

[html]
docker images
[/html]

4. Now backup the image as a tar file:

[html]
docker save -o backup-name.tar backup-name
[/html]

Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@matthewc424.sg-host.com.