Difference between revisions of "Docker start"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 8: Line 8:
  
  
*<code>docker start $(docker ps -a -q -f status=exited)</code>
+
* <code>docker start $(docker ps -a -q -f status=exited)</code>
  
*<code>[[docker inspect]] -f "{{ .HostConfig.RestartPolicy}}" $(docker ps -a -q)</code>
+
* <nowiki>[[docker inspect]] -f "{{ .HostConfig.RestartPolicy}}" $(docker ps -a -q)</nowiki>
  
  
*<code>[[docker update]] --restart=no $([[docker container]] ls -aq)</code>
+
* <code>[[docker update]] --restart=no $([[docker container]] ls -aq)</code>
  
  
  docker start my-nginx
+
  [[docker start]] my-nginx
 
  Error response from daemon: driver failed programming external connectivity on endpoint my-nginx (395445d55007ad8e495498f7d0782a0a2311d2cfb25de0f1871e10bdfb445969): Error starting userland proxy: listen tcp 0.0.0.0:80:  
 
  Error response from daemon: driver failed programming external connectivity on endpoint my-nginx (395445d55007ad8e495498f7d0782a0a2311d2cfb25de0f1871e10bdfb445969): Error starting userland proxy: listen tcp 0.0.0.0:80:  
 
  bind: [[address already in use]]
 
  bind: [[address already in use]]

Revision as of 15:07, 19 July 2022

docker start start one or more stopped containers


  • docker start CONTAINER_NAME


  • docker start $(docker ps -a -q -f status=exited)
  • [[docker inspect]] -f "{{ .HostConfig.RestartPolicy}}" $(docker ps -a -q)



docker start my-nginx
Error response from daemon: driver failed programming external connectivity on endpoint my-nginx (395445d55007ad8e495498f7d0782a0a2311d2cfb25de0f1871e10bdfb445969): Error starting userland proxy: listen tcp 0.0.0.0:80: 
bind: address already in use
Error: failed to start containers: my-nginx


Related commands

Activitities

  1. Understand Start configuration behavior and restart policy (docker update)

See also

Advertising: