Docker start: Difference between revisions
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
=Internal= | =Internal= | ||
* [[ | * [[Docker_Client_Operations#Start_a_Previously_Stopped_Container|Client Lifecycle Operations]] | ||
=Overview= | =Overview= | ||
Start a previously stopped container; new containers can be created with [[docker run#Overview|docker run]]. | Start a previously stopped container; new containers can be created with [[docker run#Overview|docker run]]. | ||
docker start <''container-id''> | |||
A container started with 'docker start' regains access to the transient state from previous runs, preserved in its [[Docker_Concepts#Difference_Between_Containers_and_Images_-_a_Writable_Layer|writable layer]]. | |||
=Options= | |||
==--attach , -a== | |||
By default, the container starts in background. To start in foreground (attach STDOUT/STDERR and forward signals), use -a|--attach |
Latest revision as of 03:39, 5 December 2017
External
Internal
Overview
Start a previously stopped container; new containers can be created with docker run.
docker start <container-id>
A container started with 'docker start' regains access to the transient state from previous runs, preserved in its writable layer.
Options
--attach , -a
By default, the container starts in background. To start in foreground (attach STDOUT/STDERR and forward signals), use -a|--attach