HomeCloud ComputingAllow Docker's Checkpoint Characteristic to Take Snapshots

Allow Docker’s Checkpoint Characteristic to Take Snapshots


Learn to activate the Docker checkpoint function for working container snapshots with this fast tutorial from skilled Jack Wallen.

Young woman with laptop outdoors, weekend away in container house in countryside.
Picture: Halfpoint/Adobe Inventory

In a current TechRepublic video, Jack Wallen reveals tips on how to allow the Docker checkpoint function to take snapshots of your working containers to save lots of a state for backup or later utilization. The next is an edited transcript of his tutorial.

First, you will need to add the repository for the CRIU bundle with the next command: SUDU add-apt-repository ppa:criu/ppa.

Replace APT with this command: sudo apt-get replace.

Then set up CRIU with this command: sudo apt-get set up criu -y.

Subsequent, we should allow Docker experimental options.

First, create a brand new file with the command sudo nano /and many others/docker/daemon.json.

In that file, add the next: {"Experimental": true}. Save and shut the file.

Restart the Docker Daemon with sudo systemctl restart docker.

Deploy an NGINX container with the command docker run --name nginx-checkpoint -p 8005:80 -d nginx.

Create the checkpoint with this command: docker checkpoint create --leave-running=true nginx-checkpoint checkpoint.

For extra tutorials from Jack Wallen, subscribe to TechRepublic’s YouTube channel How To Make Tech Work — and bear in mind to love this video.

RELATED ARTICLES

Most Popular

Recent Comments