Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
install_docker [2026/09/10 23:05] – [Create the Docker containers] systeminstall_docker [2026/09/10 23:34] (current) – [Working with the Docker containers] system
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   IMAGE               COMMAND                  CREATED             STATUS          PORTS                                                                                                  NAMES
 +5c99a3eb667b   docker-radiusdesk   "/bin/sh -c '/usr/bi…"   About an hour ago   Up 39 minutes   0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:1812-1813->1812-1813/udp, [::]:1812-1813->1812-1813/udp   radiusdesk
 +881209d31244   mariadb:11.8        "docker-entrypoint.s…"   About an hour ago   Up 39 minutes   3306/tcp                                                                                               radiusdesk-mariadb
 +</code>
 +==== 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
 +</code>
 +  * To make a backup of the DB you can issue:
 +<code bash>
 +mysqldump -h radiusdesk-mariadb -u rd -p --events rd > /tmp/rd.sql
 +</code>
 +  * 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
 +</code>
 +==== 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
 +</code>
 +  * For the log output of radiusdesk-mariadb:
 +<code bash>
 +docker logs radiusdesk-mariadb --tail 20 -f
 +</code>
  • install_docker.1789074303.txt.gz
  • Last modified: 2026/09/10 23:05
  • by system