-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstop.sh
executable file
·55 lines (42 loc) · 1.91 KB
/
stop.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
# -----------------------------------------------------------------------------------------------
# Shell script to stop development WordPress and database for My Cheese Blog
# -----------------------------------------------------------------------------------------------
# leave the network and volume in place for now
# -----------------------------------------------------------------------------------------------
# Stop the database container
# -----------------------------------------------------------------------------------------------
echo
echo Stopping MySQL container...
docker stop cheese_db
# -----------------------------------------------------------------------------------------------
# Stop the WordPress container
# -----------------------------------------------------------------------------------------------
echo
echo Stopping WordPress container...
docker stop cheese_web
# -----------------------------------------------------------------------------------------------
# Stop the Adminer container
# -----------------------------------------------------------------------------------------------
echo
echo Stopping Adminer container...
docker stop adminer
# -----------------------------------------------------------------------------------------------
# Stop the phpMyAdmin container
# -----------------------------------------------------------------------------------------------
echo
echo Stopping phpMyAdmin container...
docker stop cheese_phpmyadmin
# -----------------------------------------------------------------------------------------------
# List the containers (including stopped ones), networks and volumes
# The 'cheese' containers should have a status of 'Exited'
# -----------------------------------------------------------------------------------------------
echo
echo Running containers:
docker ps -a
echo
echo Networks:
docker network ls
echo
echo Volumes:
docker volume ls