-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker.sh
executable file
·31 lines (17 loc) · 812 Bytes
/
docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
docker version
docker info
docker build --progress=plain -f ./Dockerfile -t ace-docker-image .
#docker image ls
#docker ps -a
(docker stop ace-docker-container || echo ok_stop) && echo _ok_stop
#(docker kill ace-docker-container || echo ok_kill) && echo _ok_kill
(docker rm --force ace-docker-container || echo ok_rm) && echo _ok_rm
docker run --name ace-docker-container ace-docker-image
(docker stop ace-docker-container || echo ok_stop) && echo _ok_stop
docker logs -f ace-docker-container
docker logs ace-docker-container
# docker exec -it ace-docker-container /bin/sh
#(docker stop ace-docker-container || echo ok_stop2) && echo _ok_stop2
#(docker kill ace-docker-container || echo ok_kill2) && echo _ok_kill2
#(docker rm --force ace-docker-container || echo ok_rm2) && echo _ok_rm2