Is docker an ephemeral instance? -
i created few docker images, did wget , apt-get install on one.
everytime exit docker instance, after going image again, e.g. ubuntu:myimage seems spawn new fresh version of means apt-get install , wget "lost".
i realized it's not persistent did docker commit... proper way have "persistence" in docker?
my question: possible have persistence without doing commit time?
thanks
the docker run
command start new container provided image. use docker start
restart stopped container.
if want save changes image, possible use docker commit
command, not want. instead, use dockerfile build images , update whenever want make change. way can recreate image , make changes without starting scratch. persistence (.e.g. config files , databases) use volumes, directories stored outside of union file system normal directories on host.
Comments
Post a Comment