docker learning 5- container: container attachment

The previous article, we created an interactive container, and now we have to start it. After the start of the container was found, and did not enter the interactive command shell.

 

 

Dependence container

Attach attachment operation type container commonly used in the interaction initiated by the docker start or docker restart. Since interactive start docker start type container can be attached to the terminal is not particularly, the container itself can be received user interaction, then it needs to be attached to the container terminal by means of the attach command.

 

 

Note that the background can not be attached to the container terminal type, because it itself does not receive user input interaction

 

Guess you like

Origin www.cnblogs.com/l7planet/p/11448501.html