M
M
McMike2019-01-18 14:06:02
PostgreSQL
McMike, 2019-01-18 14:06:02

Why are container changes not saved?

Launched a container with warm, created a new database with data in it.
Now, if I do a docker kill on this container, then the next time I start from the image, I won’t have any base. This is clear. Accordingly, I do a docker commit and get a new image in the list of images, but it is exactly the same as the original one. If I run it, then again, there is no database there and I have to create everything again.
Where is the mistake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qlkvg, 2019-01-18
@qlkvg

no need to commit container

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question