Skip to content

Instantly share code, notes, and snippets.

@kamilziajka
Created May 12, 2017 08:32
Show Gist options
  • Save kamilziajka/c4068f5f96674eb063f969afb714ef8c to your computer and use it in GitHub Desktop.
Save kamilziajka/c4068f5f96674eb063f969afb714ef8c to your computer and use it in GitHub Desktop.
entrypoint that adds container user to the same group as mounted docker socket
#!/usr/bin/env bash
groupadd -g $(stat -c "%g" /var/run/docker.sock) docker_host
usermod -a -G docker_host ubuntu
/original_entrypoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment