Difference between revisions of "--restart"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
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 | 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 | ||
+ | |||
+ | |||
+ | [[kubectl run]] ephemeral-demo --image=[[registry.k8s.io]]/pause:3.1 [[--restart]]=Never |
Latest revision as of 07:31, 20 September 2023
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
kubectl run ephemeral-demo --image=registry.k8s.io/pause:3.1 --restart=Never
Advertising: