Update arke.yml to include an rm step for arke docker containers.
This commit is contained in:
parent
718e81acc5
commit
789f9ecc97
@ -13,5 +13,8 @@
|
|||||||
- name: Check if there are any existing arke containers running and kill it
|
- name: Check if there are any existing arke containers running and kill it
|
||||||
# this has to be a shell because command: isn't interactive
|
# this has to be a shell because command: isn't interactive
|
||||||
shell: docker ps | grep 'arke' | awk '{print $1}' | xargs docker kill
|
shell: docker ps | grep 'arke' | awk '{print $1}' | xargs docker kill
|
||||||
|
- name: Remove any existing containers using the arke name, its mine and i must have it
|
||||||
|
# this has to be a shell because command: isn't interactive
|
||||||
|
shell: docker container rm arke
|
||||||
- name: Run the newly built docker container
|
- name: Run the newly built docker container
|
||||||
command: docker run -d --name arke --mount source=towervol,target=/shared/ arke:latest
|
command: docker run -d --name arke --mount source=towervol,target=/shared/ arke:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user