I'm working on a docker image that needs to have the
SSH_AUTH_SOCK env variable referenced in the docker command when run. When atomic runs the command, it is empty.
$ sudo atomic run --name=test rspec-puppet:puppet3 [sudo] password: docker run -t --name test -v /home/me//puppet/module:/module:z -v :/ssh-agent:z -e SSH_AUTH_SOCK=/ssh-agent rspec-puppet:puppet3 invalid value ":/ssh-agent:z" for flag -v: bad format for volumes: :/ssh-agent:z See 'docker run --help'.
I am running this through sudo, but I have sudo passing keeping the variable in my environment, and checking that works fine.