Permission denied to Docker daemon socket at unix:///var/run/docker.sock

前端 未结 5 627
感情败类
感情败类 2021-01-31 23:04

I have this Dockerfile:

FROM chekote/gulp:latest 

USER root
RUN apt-get update \\
      && apt-get upgrade -y \\
      && apt-get i         


        
5条回答
  •  温柔的废话
    2021-01-31 23:57

    You need the --privileged flag with your docker run command.

    By the way , you can just use the docker in docker , image from docker for this kind of use case.

    https://asciinema.org/a/24707

    https://hub.docker.com/_/docker/

提交回复
热议问题