This repository was archived by the owner on Oct 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathremove.sh
More file actions
55 lines (44 loc) · 2.31 KB
/
Copy pathremove.sh
File metadata and controls
55 lines (44 loc) · 2.31 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
removeSetting() {
echo "\n\n++ Container Remove\n\n"
pip3 install docker
python3 src/remove.py
pip3 uninstall docker
rm -rf /var/log
}
dockerImageRemove() {
echo "\n\n++ Docker Images Remove\n\n"
#SSH Container Image
docker rmi registry.gitlab.com/individual-projects2/container-build-management-mastering-program:api\
registry.gitlab.com/container-images4/docker-ssh-conteiner:centossshcotainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:ubuntusshcontainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:rockylinuxsshcontainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:tensorflowsshcontainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:gpucentossshcontainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:gpuubuntusshcontainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:gpurockylinuxsshcontainer\
registry.gitlab.com/container-images4/docker-ssh-conteiner:gputensorflowsshcontainer\
registry.gitlab.com/container-images4/docker-jupyter-container:containerjupytercentos\
registry.gitlab.com/container-images4/docker-jupyter-container:containerjupyterubuntu\
registry.gitlab.com/container-images4/docker-jupyter-container:containerjupyterrockylinux\
registry.gitlab.com/container-images4/docker-jupyter-container:containerjupytertensorflow\
registry.gitlab.com/container-images4/docker-jupyter-container:gpucontainerjupytercentos\
registry.gitlab.com/container-images4/docker-jupyter-container:gpucontainerjupyterubuntu\
registry.gitlab.com/container-images4/docker-jupyter-container:gpucontainerjupyterrockylinux\
registry.gitlab.com/container-images4/docker-jupyter-container:gpucontainerjupytertensorflow\
mysql:latest\
mariadb:latest\
mongo:latest\
redis:latest
}
cat remove/remove
if [ $(id -u) -ne 0 ]; then
echo "\n\nplease run as root"
exit
fi
docker stop dply-program
removeSetting
dockerImageRemove
docker rm dply-program
docker volume rm dply_program_sqlvolume
echo "\n\n\nDone!"