Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Docker
(edit)
Revision as of 12:36, 27 May 2017
161 bytes added
,
12:36, 27 May 2017
→Restart stopped container with diferent command
Line 26:
Line 26:
Start/run with a different entry point:
Start/run with a different entry point:
docker run -ti --entrypoint=sh user/test_image
docker run -ti --entrypoint=sh user/test_image
+
+
== Restart exited container ==
+
docker start `docker ps -q -l` # restart it in the background
+
docker attach `docker ps -q -l` # reattach the terminal & stdin
== Create & Publish image ==
== Create & Publish 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