How to Save and Load Apollo Docker Images

Considering that Apollo Docker images are usually serveral Gigabytes in size, you can pull them over WIFI or other stable Internet connections, and then copy the relavant images to vehicle.

Save Docker Images

After you have pulled the relavant Docker image, you can save it as a tarball by running the following command:

# docker save -o <path/to/saved/image/tar> <repo:tag>
docker save -o apollo_dev.tar apolloauto/apollo:dev-x86_64-18.04-20200823_0534

Load the Docker Image

With the taballs copied to vehicle, you can reload the relavant Apollo Docker image by running:

# docker load -i <path/to/docker/tarball>
docker load -i apollo_dev.tar