Answer the question
In order to leave comments, you need to log in
Can you please show an example playbook for deploying a Docker container?
Please show an example of how an Ansible playbook should look like, which performs the following actions on the host:
- load the updated image: docker pull image:new
- stop the current container: docker stop container:old
- delete the current container: docker rm container:old
- start the container on a new image: docker run --name new-container image:new
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question