Docker ordinary users do not use sudo to escalate privileges

Solution

  1. sudo groupadd dockerAdd Docker user group
  2. sudo gpasswd -a ${USER} dockerAdd your user to the Docker user group
  3. rebootReboot the system. You can also restart the Docker service and log out the user to log in.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325154095&siteId=291194637