Start without install on Play-With-Docker
- Download Docker Desktop for Windows or MAC
- Install Docker for Windows
- Install Docker for MAC
- Install Docker for Linux
Open Powershell (PS) or other Terminal (prompt my be different then).
PS ???>
cd <path-where-your-Docker-should-reside>
PS path-where-your-Docker-should-reside>
mkdir Docker # if not already exists
cd Docker
PS path-to-Docker>
Replace fhooe-web-dock with the appropriate Docker Repository at https://github.com/Digital-Media for other Docker environments.
git clone https://github.com/Digital-Media/fhooe-web-dock.git
cd fhooe-web-dock
docker compose up -d
Result
[+] Running 5/5 `\
- Network webnet Created 0.0s
- Volume "fhooe-web-dock_dbdata" Created 0.0s
- Container webapp Started 5.3s
- Container mariadb Started 5.0s
- Container pma Started 3.2s
docker compose up --force-recreate --build -d
You can clean up using Docker Desktop
- Stop and remove Containers
- Remove Images for mariadb, php-apache and phpmyadmin
- Remove Volume fhooe-web-dock_dbdata
- Go to directory, where docker-compose.yml is installed.
- Type .\CleanReinstall.sh for Linux or MAC or in a Windows Powershell
- or doubleclick on CleanReinstall.bat for Windows
See Starting Container to start again.
manually deleting only images for fhooe-web-dock
docker image rm fhooe-web-dock_php-apache
docker image rm fhooe-web-dock_db
docker image rm phpmyadmin/phpmyadmin
- Follow Link for Instructions
- enter
chrome://net-internals/#hsts
in Chrome Browser - goto end of site.
- enter "localhost" and press "Delete"
# Delete domain security policies
Input a domain name to delete its dynamic domain security policies (HSTS and Expect-CT).(You cannot delete preloaded entries.):
Domain:[example.com -> localhost][Delete]
docker compose stop
Result
- Container pma Stopped 4.2s
- Container webapp Stopped 4.1s
- Container mariadb Stopped
docker compose start
docker image ls
Result
besides others there should be the following entries
REPOSITORY TAG IMAGE ID CREATED SIZE
fhooe-web-dock_db latest 96a53a828586 2 days ago 565MB
fhooe-web-dock_php-apache latest 5605e6a73edc 2 days ago 561MB
phpmyadmin/phpmyadmin latest 2e5141bbcbfb 7 months ago 474MB
docker container ls
docker volume ls
docker exec -it webapp /bin/bash
docker exec -it mariadb /bin/bash
docker exec -it pma /bin/bash
PS path-to-Docker/Docker/fhooe-web-dock>
docker exec -it webapp /bin/bash
root@<image-id>:/var/www/html#
ps -aux
Result
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 78988 26568 ? Ss 08:30 0:00 apache2 -DFOREGROUND
www-data 17 0.0 0.0 79256 11952 ? S 08:30 0:00 apache2 -DFOREGROUND
www-data 18 0.0 0.0 79256 11952 ? S 08:30 0:00 apache2 -DFOREGROUND
www-data 19 0.0 0.0 79256 11952 ? S 08:30 0:00 apache2 -DFOREGROUND
www-data 20 0.0 0.0 79256 11952 ? S 08:30 0:00 apache2 -DFOREGROUND
www-data 21 0.0 0.0 79256 11952 ? S 08:30 0:00 apache2 -DFOREGROUND
root 22 0.1 0.0 4092 3336 pts/0 Ss 08:40 0:00 /bin/bash
root 29 0.0 0.0 6928 2908 pts/0 R+ 08:40 0:00 ps -aux
root@<image-id>:/var/www/html#
ps -ef
Result
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 08:30 ? 00:00:00 apache2 -DFOREGROUND
www-data 17 1 0 08:30 ? 00:00:00 apache2 -DFOREGROUND
www-data 18 1 0 08:30 ? 00:00:00 apache2 -DFOREGROUND
www-data 19 1 0 08:30 ? 00:00:00 apache2 -DFOREGROUND
www-data 20 1 0 08:30 ? 00:00:00 apache2 -DFOREGROUND
www-data 21 1 0 08:30 ? 00:00:00 apache2 -DFOREGROUND
root 22 0 0 08:40 pts/0 00:00:00 /bin/bash
root 30 22 0 08:40 pts/0 00:00:00 ps -ef
PS path-to-Docker/Docker/fhooe-web-dock>
docker exec -it webapp /bin/bash -c "ps -aux"
docker build -f Dockerfile-mariadb -t mhteaching/fhooe-web-dock:mariadb .
docker build -f Dockerfile-php -t mhteaching/fhooe-web-dock:php .
docker build -f Dockerfile-phpmyadmin -t mhteaching/fhooe-web-dock:phpmyadmin .
docker push mhteaching/fhooe-web-dock:mariadb
docker push mhteaching/fhooe-web-dock:php
docker push mhteaching/fhooe-web-dock:phpmyadmin
docker compose up -f docker-compose.tagged.yml -d
See the Wiki