The RUN line is exactly the same as the docker run line in the unit file has: ExecStart=/usr/bin/docker run -dp 192.168.10.213:80:80 --name=dash The only difference it doesn't work when invoking it from "atomic run" It looked like it might have been the Environment wasn't getting through since I would see a permission denied for .docker in journalctl The line commented out it the only way it works, if I uncomment and use that instead of atomic run. wierd.
On Wed, Feb 22, 2017 at 1:43 PM, Josh Berkus <[email protected]> wrote: > On 02/20/2017 06:43 PM, solarflow99 wrote: > > Environment="HOME=/root" > > ExecStartPre=-/usr/bin/docker kill dash > > ExecStartPre=-/usr/bin/docker rm dash > > ExecStart=/usr/bin/atomic run solarflow:puppet-dashboard-img > > #ExecStart=/usr/bin/docker run -dp 192.168.10.213:80:80 --name=dash > > --hostname=puppet-dashboard.local solarflow:puppet-dashboard-img > > ExecStop=/usr/bin/docker stop dash > > I'm not quite following. You're expecting that environment to be passed > into the container? Or something else? > > Also, what's the "RUN" label for the container? > > -- > -- > Josh Berkus > Project Atomic > Red Hat OSAS >
