S
S
Seeker2021-01-31 19:13:30
Docker
Seeker, 2021-01-31 19:13:30

How to change docker container settings?

I am learning docker. I understood the basic principle, ready-made images are taken from the Docker HUB, a new container based on the image is launched by the "docker run" command, while the container is running, you can save the changes made to it by creating a new image based on the modified container with the "docker commit" command. But I can't understand if I need to make changes not only to the container's file system, but, for example, to network sockets, mount points, variables, that is, to all those parameters that I can see with the "docker container inspect" command

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gsaw, 2021-02-01
@gsaw

Create a new container and do not suffer. In reality, rarely does anyone run a container forever and manually. At least this is docker compose, according to the config. It deletes containers on a stop and creates anew.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question