Docker and Kubernetes

Move a Docker image to another machine

Save an image to a file and load it elsewhere, without pushing it to a registry.

Fill these in once
  1. Save the image to a file
    Terminal
    docker save -o my-app.tar my-app
  2. Copy the file to the other machine
    Terminal
    scp my-app.tar ubuntu@203.0.113.10:~/

    Or a USB drive, or any other way of moving files.

  3. On the other machine, load it
    Terminal
    docker load -i my-app.tar

Check it worked

  1. Check it's there (on the other machine)
    Terminal
    docker images
  1. Save the image to a file
    Terminal · Ubuntu / Debian
    docker save -o my-app.tar my-app
  2. Copy the file to the other machine
    Terminal · Ubuntu / Debian
    scp my-app.tar ubuntu@203.0.113.10:~/

    Or a USB drive, or any other way of moving files.

  3. On the other machine, load it
    Terminal · Ubuntu / Debian
    docker load -i my-app.tar

Check it worked

  1. Check it's there (on the other machine)
    Terminal · Ubuntu / Debian
    docker images
  1. Save the image to a file
    PowerShell
    docker save -o my-app.tar my-app
  2. Copy the file to the other machine
    PowerShell
    scp my-app.tar ubuntu@203.0.113.10:~/

    Or a USB drive, or any other way of moving files.

  3. On the other machine, load it
    PowerShell
    docker load -i my-app.tar

Check it worked

  1. Check it's there (on the other machine)
    PowerShell
    docker images