V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
bigsea
V2EX  ›  Docker

学习 docker

  •  
  •   bigsea · 2019-05-07 14:44:20 +08:00 · 4187 次点击
    这是一个创建于 1816 天前的主题,其中的信息可能已经有所发展或是发生改变。

    刚学 docker 跟着官方文档操作的

    docker run hello-world docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'.

    systemctl start docker Failed to get D-Bus connection: Operation not permitted

    2 条回复    2019-05-07 17:44:21 +08:00
    hui314
        1
    hui314  
       2019-05-07 17:30:04 +08:00
    用户权限
    Leszeu
        2
    Leszeu  
       2019-05-07 17:44:21 +08:00
    添加用户到 docker 用户组
    # $USER 为你的系统用户名
    sudo usermod -aG docker $USER
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5490 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:44 · PVG 14:44 · LAX 23:44 · JFK 02:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.