久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      運行docker需要root權(quán)限嗎

      運行docker需要root權(quán)限嗎

      運行docker需要root權(quán)限嗎

      運行docker需要root權(quán)限。

      推薦學(xué)習(xí):docker教程。

      解決非root用戶沒有權(quán)限運行docker命令的問題,方法如下:

      方法1:

      使用sudo獲取管理員權(quán)限,運行docker命令,這個方法在通過腳本執(zhí)行docker命令的時候會有很多局限性

      方法2:

      docker守護進程啟動的時候,會默認(rèn)賦予名為docker的用戶組讀寫Unix socket的權(quán)限,因此只要創(chuàng)建docker用戶組,并將當(dāng)前用戶加入到docker用戶組中,那么當(dāng)前用戶就有權(quán)限訪問Unix socket了,進而也就可以執(zhí)行docker相關(guān)命令

      sudo groupadd docker     #添加docker用戶組 sudo gpasswd -a $USER docker     #將登陸用戶加入到docker用戶組中 newgrp docker     #更新用戶組

      PHP中文網(wǎng),大量docker運維教程和laravel框架教程,歡迎學(xué)習(xí)。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號