Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Docker
(edit)
Revision as of 14:08, 24 May 2017
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
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version