How do you export a Docker image to a zip file?
Experience Level: Junior
Tags: DockerDocker CLI
Answer
Use the following command:
docker save -o <zip-file-name> <image-name>
Related Docker job interview questions
What is a Docker image registry?
Docker JuniorHow do you import a Docker image to a Docker host from a zip file?
DockerDocker CLI JuniorHow does load balancing across Docker containers and hosts work?
Docker JuniorWhat changes do you usually need to do to your Docker compose file when deploying to production?
Docker JuniorIs it a good practice to run Docker compose in production?
Docker Junior