Skip to content

Running testcontainers-java inside a distrobox #9136

Closed Answered by rombert
rombert asked this question in Q&A
Discussion options

You must be logged in to vote

I did the following changes to fix the setup:

  • identified the docker group id on the host ( stat /var/run/docker.sock )
  • created a group with the matching id in the distrobox container ( sudo groupadd -g 125 hostdocker )
  • added my own user to that group in the container ( sudo usermod -aG 125 $USER)

After existing and re-entering the container I could run the tests as expected.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rombert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant