-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-instructions.sh
35 lines (24 loc) · 1.05 KB
/
docker-instructions.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
# Turn the container up
docker compose up -d
# List the containers running
docker compose ps
# Turn the container down
docker compose down
# List the volumes
docker volume ls
# Delete the MySQL volume
docker volume rm lamp_mysql-data
# http://localhost:5000/index.php
# http://localhost:8181/index.php
# List modules enabled by default on PHP 7.2, PHP 7.3 and PHP 7.4 Docker containers:
docker run -it --rm php:7.2-fpm php -m
docker run -it --rm php:7.3-fpm php -m
docker run -it --rm php:7.4-fpm php -m
docker run -it --rm php:7.2-apache php -m
docker run -it --rm php:7.3-apache php -m
docker run -it --rm php:7.4-apache php -m
# -----
java -jar GetAddressByDescription.jar "802.11n USB Wireless LAN Card" > host_ip.txt && set /p HOST_IP=<host_ip.txt && rm -rf host_ip.txt echo %HOST_IP% && docker-compose up -d
php -d memory_limit=-1 my_script.php
# The --build flag builds images before starting containers. It’s essential to use this flag because without it the changes that we made in php.Dockerfile won’t take effect.
docker-compose up -d --build web-server