Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| install_docker [2026/09/10 23:04] – system | install_docker [2026/09/10 23:34] (current) – [Working with the Docker containers] system | ||
|---|---|---|---|
| Line 88: | Line 88: | ||
| ===== Create the Docker containers ===== | ===== Create the Docker containers ===== | ||
| - | * Everything you need to create the RADIUSdesk Docker containers | + | * Everything you need to create the RADIUSdesk Docker containers |
| * Check out the **rdcore** git repository. | * Check out the **rdcore** git repository. | ||
| <code bash> | <code bash> | ||
| Line 138: | Line 138: | ||
| * Open a browser and call up the IP address of the host on which the Docker containers are running. | * Open a browser and call up the IP address of the host on which the Docker containers are running. | ||
| + | |||
| + | ===== Working with the Docker containers ===== | ||
| + | * The docker containers can be seen as a lightweight Linux machine. | ||
| + | ==== Who is active? ==== | ||
| + | |||
| + | * To see which docker containers are running: | ||
| + | <code bash> | ||
| + | docker ps | ||
| + | #This was the reply on my machine | ||
| + | CONTAINER ID | ||
| + | 5c99a3eb667b | ||
| + | 881209d31244 | ||
| + | </ | ||
| + | ==== Shell access ==== | ||
| + | * If you like the Linux shell then you will feel at home inside a Docker container. | ||
| + | * You can shell into the radiusdesk container with the following command: | ||
| + | <code bash> | ||
| + | docker exec -it radiusdesk bash | ||
| + | </ | ||
| + | * To make a backup of the DB you can issue: | ||
| + | <code bash> | ||
| + | mysqldump -h radiusdesk-mariadb -u rd -p --events rd > /tmp/rd.sql | ||
| + | </ | ||
| + | * There are also a vi editor and the ping command installed for basic editing and network troubleshooting. | ||
| + | * To exit out of the docker container simply type **exit**. | ||
| + | * You can shell into the radiusdesk-mariadb container with the following command: | ||
| + | <code bash> | ||
| + | docker exec -it radiusdesk-mariadb bash | ||
| + | </ | ||
| + | ==== Log output ==== | ||
| + | * Again if you like the fact that you can check log files to confirm everything works well then Docker containers got you covered. | ||
| + | * You can run the following command to check the log output of the radiusdesk container: | ||
| + | <code bash> | ||
| + | docker logs radiusdesk --tail 20 -f | ||
| + | </ | ||
| + | * For the log output of radiusdesk-mariadb: | ||
| + | <code bash> | ||
| + | docker logs radiusdesk-mariadb --tail 20 -f | ||
| + | </ | ||