Quick News Bit

How to enable the Docker checkpoint feature to take snapshots of your running containers

0

Learn how to turn on the Docker checkpoint feature for running container snapshots with this quick tutorial from expert Jack Wallen.

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

In a recent TechRepublic video, Jack Wallen shows how to enable the Docker checkpoint feature to take snapshots of your running containers to save a state for backup or later usage. The following is an edited transcript of his tutorial.

First, you must add the repository for the CRIU package with the following command: SUDU add-apt-repository ppa:criu/ppa.

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

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

Next, we must enable Docker experimental features.

First, create a new file with the command sudo nano /etc/docker/daemon.json.

In that file, add the following: {"Experimental": true}. Save and close 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 more tutorials from Jack Wallen, subscribe to TechRepublic’s YouTube channel How To Make Tech Work — and remember to like this video.

For all the latest Technology News Click Here 

 For the latest news and updates, follow us on Google News

Read original article here

Denial of responsibility! NewsBit.us is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – [email protected]. The content will be deleted within 24 hours.

Leave a comment