Docker start: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 12: Line 12:


  docker start <''container-id''>
  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=
=Options=

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