A
A
Asya2020-09-04 17:04:21
Docker
Asya, 2020-09-04 17:04:21

How to save a docker container?

how to save a docker container so that later it can be downloaded to other machines with pre-installed packages and files?

in the Dockerfile, I write some packages that I need installed, then I do
docker build .
then I add some files or something else to the docker,
how can I save all this later so that I can copy this entire container in the same form to other machines?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2020-09-04
@asyaevloeva

You can write all the steps in the docker-compose file and build and raise with it, but you can also create your own image, upload it to the docker registry or dockerhub and from there pull it to the machine https://docs.docker.com/develop/develop- images/base...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question