Creating a checkpoint is a top level Docker command with this new version of Docker. Here's an example that simply logs an integer in a loop.
+
Creating a checkpoint is a top level Docker command with this new version of Docker. Here's an example that simply logs an integer in a loop. From this point forward, commands are show using '''docker''' instead of '''docker-dev-1.10''', but if you have not installed this version globally you can use the latter.
First, we create container:
First, we create container:
$ docker run -d --name looper --security-opt seccomp:unconfined busybox \
$ docker run -d --name looper --security-opt seccomp:unconfined busybox \
−
/bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
+
/bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
You can verify the container is running by printings its logs:
You can verify the container is running by printings its logs: