You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In chapter 11, during the ansible playbook where the docker container is being archived, copied onto the vm, and loaded, I ran into an issue running the container. It was solved by adding become: true. This makes the final task:
name: Run test container
community.docker.docker_container:
name: superlists
state: started
image: superlists
recreate: true
become: true
The text was updated successfully, but these errors were encountered:
When I added become: true for run test container, I ran into an error later on. env.j2 was being placed in /superlists.env, but run test container was looking in root/superlists.env. I was able to fix this by using the following ansible arguments:
thanks! let me look in to it. i think i solved this by making sure the default user is in the "docker" group or something, but i can't remember for sure...
In chapter 11, during the ansible playbook where the docker container is being archived, copied onto the vm, and loaded, I ran into an issue running the container. It was solved by adding become: true. This makes the final task:
community.docker.docker_container:
name: superlists
state: started
image: superlists
recreate: true
become: true
The text was updated successfully, but these errors were encountered: