You need to build an image that contains the changes. Check out dockerfiles / docker build.
after any change i must commit?
What does „commit“ mean in this case for you?
Ah. Sure that works as well. But you don‘t „save changes in an image“. You create a new image based on the old image with your changes. But in general you probably want to take a look at what‘s called a „dockerfile“.
yes it's problem how can update a image for example i have a mongo image and i run that. when i restart image i don't want lose all data in database
https://docs.docker.com/get-started/05_persisting_data/ You may want to go through this section on volumes.
Ah. You need a volume. See https://docs.docker.com/storage/volumes/
Even better. Nice!
Yeah, the guides for projects are getting really nice.
Обсуждают сегодня