Enable Docker’s Checkpoint Feature to Take Snapshots

0
315
Enable Docker’s Checkpoint Feature to Take Snapshots


Learn the way 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.
Image: Halfpoint/Adobe Stock

In a latest TechRepublic video, Jack Wallen exhibits the way to allow the Docker checkpoint function to take snapshots of your working containers to avoid wasting a state for backup or later utilization. The following 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.

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

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

Next, we should allow Docker experimental options.

First, create a brand new file with the command sudo nano /and so on/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 keep in mind to love this video.

LEAVE A REPLY

Please enter your comment!
Please enter your name here