I created a docker container to install Ansible for testing different versions, etc. As folks here have mentioned, it's not really the purpose of the ansible/ansible image. However, I just run it with a sleep command at run time, for like 29000 seconds (eight hours) since the container has to execute something. It's a bit of a hack, but then I have a purpose built docker container with Ansible.
On Mon, Mar 16, 2020 at 3:02 AM Michael Cooper <[email protected]> wrote: > Hey Guys, > > I am trying to get ansible working on docker. The image that I am > using is ansible/ansible and there are no instructions for a run line on it. > > So this is what I tried but it doesn't work. > > docker run -dit --name cfANS --ip xxx.xxx.x.xx --network=CFSNET -p 22:22 > -v /mnt/clusterfs/ansible:/etc/ansible ansible/ansible > > The following is the result of the run line: > a1cd233bf9f2 ansible/ansible:ubuntu1604 "/sbin/init" 7 > seconds ago Exite d (1) 4 > seconds ago > > Any help with this would be appreciated > Thanks everyone > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/d00512ba-3084-42b9-89d3-0a67d9b5e23c%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/d00512ba-3084-42b9-89d3-0a67d9b5e23c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAH4rTPsr%3DXduHvaa%2BGSW%2BWWiP1sYLpQYFazdoN3q0RtX9Fw0vA%40mail.gmail.com.
