Changes

Jump to navigation Jump to search
338 bytes added ,  14:08, 24 May 2017
no edit summary
Line 17: Line 17:  
  #  Remove incompletely built images:
 
  #  Remove incompletely built images:
 
  docker images | grep none | awk '{print "docker rmi " $3;}' | sh
 
  docker images | grep none | awk '{print "docker rmi " $3;}' | sh
 +
 +
= Restart stopped container with diferent command =
 +
Find your stopped container id
 +
docker ps -a
 +
Commit the stopped container:
 +
This command saves modified container state into a new image user/test_image
 +
docker commit $CONTAINER_ID user/test_image
 +
Start/run with a different entry point:
 +
docker run -ti --entrypoint=sh user/test_image

Navigation menu