docker disable restart--run privileged

--restart=unless-stopped option, as @Shibashis mentioned, or update the restart policy (this requires docker 1.11 or newer);

See the documentation for docker update and Docker restart policies.

docker update --restart=no my-container

that updates the restart-policy for an existing container (my-container)

 

docker run  --privileged --cap-add SYS_ADMIN


posted on 2018-06-21 10:45  szllq2000  阅读(188)  评论(0编辑  收藏  举报