Docker: save internal hd contents -
is there way save contents of container's "internal" hd. have tried use docker commit
when shut down container , turn on again, contents have downloaded or generated inside container (logs, etc) gone.
when start container use docker start
or docker run
?
docker run -i -t docker/image /bin/bash
start new container information original imagefile.
docker start {dockercontainerid}
restart running container. can list of previous dockers docker ps -a
if have save docker docker commit {runningdocker} docker/image2
use new image name. ie `docker run -ti docker/image2 /bin/bash
Comments
Post a Comment