rcook / ibt

Isolated Build Tool
MIT License
0 stars 0 forks source link

Unable to execute docker commands in the docker container #14

Open joerghall opened 6 years ago

joerghall commented 6 years ago

The docker socket /var/run/docker.sock is has the ownership docker:docker but the "user" is not assigned to the docker group inside the container and therefore has no permissions to execute commands.

rcook commented 6 years ago

Can you provide repro steps?

joerghall commented 6 years ago

Because the Ibt user is not part of the docker group it is not possible to run docker commands. It would be also nice to add files instead of entire volumes.

Add the following volume with the docker Unix socket

volumes: /var/run: /var/run

Start shell

ibt shell

Check permissions on the socket

bash-4.2$ ls -ltr /var/run/docker.sock srw-rw----. 1 root 981 0 Aug 27 17:27 /var/run/docker.sock