Difference between revisions of "Docker run -d"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  docker run -d    # [[dettach]]
+
  [[docker run]] -d    # [[dettach]]
 
   
 
   
 +
 +
[[docker run -d --publish]]
 
  [[docker run -d --privileged]]
 
  [[docker run -d --privileged]]
  
Line 12: Line 14:
  
 
  [[docker run -d -p 80:80 php:apache]]
 
  [[docker run -d -p 80:80 php:apache]]
 +
docker run -d --publish 80:80 --name [[php-apache]] php-apache
  
  
Line 22: Line 25:
  
 
== Related ==
 
== Related ==
* [[docker run -p]]
+
* [[docker run -p]], [[--publish]]
 
* [[&]]
 
* [[&]]
 
* [[Background]]
 
* [[Background]]

Latest revision as of 09:58, 21 March 2024

docker run -d    # dettach

docker run -d --publish
docker run -d --privileged


docker run -it ubuntu
docker run -d -p 3478:3478 -p 3478:3478/udp -p 5349:5349 -p 5349:5349/udp -p 49152-65535:49152-65535/udp coturn/coturn
docker run -d -p 5000:5000 --name registry registry:2
docker run -d -p 80:80 php:apache
docker run -d --publish 80:80 --name php-apache php-apache


sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run  rancher/rancher-agent:v2.6.6 --server https://your-server --token your-tocketn --ca-checksum 1234567890 --worker


docker run ubuntu -d
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "-d": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled

Related[edit]

See also[edit]

Advertising: