Difference between revisions of "Docker attach"

From wikieduonline
Jump to navigation Jump to search
 
Line 6: Line 6:
 
CTRL-p CTRL-q detach key sequence produces no effect, but pressing CTRL-c or typing [[exit]] terminates the container.
 
CTRL-p CTRL-q detach key sequence produces no effect, but pressing CTRL-c or typing [[exit]] terminates the container.
  
  [[docker exec]]
+
 
 +
  [[docker exec -it]] CONTAINER bash
  
 
== See also ==
 
== See also ==

Latest revision as of 14:07, 31 January 2024

https://docs.docker.com/engine/reference/commandline/attach/

docker attach CONTAINER_NAME

CTRL-p CTRL-q detach key sequence produces no effect, but pressing CTRL-c or typing exit terminates the container.


docker exec -it CONTAINER bash 

See also[edit]

Advertising: