Remove container first
This commit is contained in:
@@ -18,6 +18,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run SSH server
|
- name: Run SSH server
|
||||||
run: |
|
run: |
|
||||||
|
docker rm -f ssh-server-test || true
|
||||||
docker run -d --name ssh-server-test -p 2223:22 -e COMMAND="/bin/sh" ssh-server-test
|
docker run -d --name ssh-server-test -p 2223:22 -e COMMAND="/bin/sh" ssh-server-test
|
||||||
sleep 2
|
sleep 2
|
||||||
if ! docker ps | grep -q ssh-server-test; then
|
if ! docker ps | grep -q ssh-server-test; then
|
||||||
|
|||||||
Reference in New Issue
Block a user