I have this Dockerfile:
Dockerfile
FROM chekote/gulp:latest USER root RUN apt-get update \\ && apt-get upgrade -y \\ && apt-get i
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/