bigsea
V2EX  ›  Docker

学习 docker

  •  
  •   bigsea · May 7, 2019 · 5460 views
    This topic created in 2748 days ago, the information mentioned may be changed or developed.

    刚学 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 replies  •  2019-05-07 17:44:21 +08:00
    hui314
    hui314
    May 7, 2019
    1
    用户权限
    Leszeu
    Leszeu
    May 7, 2019
    2
    添加用户到 docker 用户组
    # $USER 为你的系统用户名
    sudo usermod -aG docker $USER
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:15 · PVG 22:15 · LAX 06:15 · JFK 09:15
    ♥ Do have faith in what you're doing.