Line 5: |
Line 5: |
| There are two ways to checkpoint and restore a Docker container: | | There are two ways to checkpoint and restore a Docker container: |
| | | |
− | '''External C/R:''' Using CRIU directly on the command line as it's typically | + | '''External C/R''' using CRIU directly on the command line as it's typically |
− | done. This is called external because it's happening external to the | + | done. |
| + | |
| + | This is called external because it's happening external to the |
| Docker daemon. After checkpoint, the Docker daemon thinks that the | | Docker daemon. After checkpoint, the Docker daemon thinks that the |
| container has exited. After restore, the Docker daemon doesn't know that | | container has exited. After restore, the Docker daemon doesn't know that |
Line 14: |
Line 16: |
| External C/R was done as a proof-of-concept. | | External C/R was done as a proof-of-concept. |
| | | |
− | '''Native C/R:''' Using ''docker checkpoint'' and ''docker restore'' commands. | + | '''Native C/R''' using ''docker checkpoint'' and ''docker restore'' commands. |
| + | |
| Because the Docker daemon is involved in both checkpoint and restore, | | Because the Docker daemon is involved in both checkpoint and restore, |
| its notion of the container state will be consistent and commands such as | | its notion of the container state will be consistent and commands such as |