Derived from sshbox and modified for the needs of su-git project.
NOTE: The USER environment variable is mandatory to gitbox and therefore must be set.
Optionally, a few other variables may be used to override defaults:
GROUP Name of the group running the sandbox (defaults to USER value)GID Id of the group running the sandboxUID Id of the user running the sandbox (defaults to 1000)Mounted volumes & directories
/app/ssh/known_hosts/app/ssh/id_rsaNOTE: Docker container should be run with the host (-h) option set to match the host machine.
docker run --rm -h `hostname` -v "/path/to/private/key_rsa":/app/ssh/id_rsa -v "/home/user/.ssh/known_hosts":/app/ssh/known_hosts -e USER=`whoami` gitbox <git-command>
Content type
Image
Digest
Size
20.2 MB
Last updated
over 4 years ago
docker pull yannoff/gitbox