Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I have a container inside which I need to use another container (the first container holds my build env, and some of the projects are built by creating a container). I read about avoiding docker-in-docker, and followed the advice here: https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ So I run the container like this:
docker run -v /var/run/docker.sock:/var/run/docker.sock -ti 6519bf891fee bash
This is what I get, trying to run docker hello-world inside the container:
root@345cf0f934c3:/# docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
I don’t think I’m supposed to have permission problems. I am running as root both in the host and in the container, and have added the docker user to sudoers group in both.
srw-rw----. 1 root root 0 Nov 29 08:58 /var/run/docker.sock
sudo:x:27:build,docker
lwmeozrcbh
d1dd3d9538cc4d06b53e6d1d338d3f
50ff4e4b3c6c4999a12403b1ecda95
a6309a057c3f4cb38fb2e7feb67236
72e571841e7f4a6881090a2f3e93c0
7ce6bf277bff4d429ba493dd750e35
57a72a98162f46a5a5cd04d9b
Thomas Brocken
11575c6d695643cdb40ad47d0f1aea
tez.saad