Difference between revisions of "Docker run -d"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
  docker run -d    # [[dettach]]
 
  docker run -d    # [[dettach]]
 
   
 
   
 +
 +
[[docker run -d --publish]]
 
  [[docker run -d --privileged]]
 
  [[docker run -d --privileged]]
  

Revision as of 09:47, 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

See also

Advertising: