Skip to content

Commit 9a3aaa1

Browse files
committed
updates docs
1 parent a1978d7 commit 9a3aaa1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ api:
3939
```bash
4040
#!/bin/bash
4141
/usr/bin/docker pull docker.mydomain.com/api:latest
42-
/usr/bin/docker rm -f myapp-api_1
42+
43+
if /usr/bin/docker ps | grep --quiet myapp-api_1 ; then
44+
/usr/bin/docker rm -f myapp-api_1
45+
fi
46+
4347
/usr/bin/docker run \
4448
--privileged=true \
4549
--restart=always \

0 commit comments

Comments
 (0)