Difference Between Import and Load in Docker
Docker import |
Docker load |
---|---|
Docker import is a Docker command that creates a Docker image by importing material from an archive or tarball generated after exporting a container. |
Docker load loads an image from a tar archive as STDIN, containing images and tags. |
Import command is used with tars made using Docker export; it dumps the container to a file and flattens the image by deleting the container’s history. |
Load command is used with tar files generated using Docker save. |
Docker import also generates a tarball, but without any layer/history. |
Docker load will create a tarball including all parent layers, tags, and versions. |
syntax of Docker import is $ docker import [options] file |URL|- [REPOSITORY[:TAG]] |
Syntax of Docker load is docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE |
What is the Difference Between Import and Load In Docker?
Docker is a container orchestration platform that is used for containerizing applications. The service offers both free and premium tiers. The software that hosts the containers is known as Docker Engine. Docker import is a Docker command that creates a Docker image by importing material. Docker load loads an image from a tar archive as STDIN, containing images and tags.