Clover13 Posted October 20, 2023 Posted October 20, 2023 Trying to set up Docker locally with IPS, I have a container running with Apache, PHP, and MariaDB. The IPS4 pre-check is all green, and I am stepping through the installation but running into an issue with the Server Details and an error of "No such file or directory". Not sure what else needs to be done, but hopefully someone else has run into this before. I can connect to the database OK and run a sample query via VSCode SQLTools.
Ryan Ashbrook Posted October 20, 2023 Posted October 20, 2023 To start, I would avoid using dashes in the database name. Use letters, numbers, and underscores only.
Clover13 Posted October 20, 2023 Author Posted October 20, 2023 41 minutes ago, Ryan Ashbrook said: To start, I would avoid using dashes in the database name. Use letters, numbers, and underscores only. OK, same error with underscore notation for the database name.
Clover13 Posted October 20, 2023 Author Posted October 20, 2023 (edited) Figured it out. Once your Docker containers are up and running, run the following command from terminal: docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' WHATEVER_YOUR_MARIADB_CONTAINER_NAME_IS This will return an IP address that you can then use in the Host form field of the IPS installation Server Details section in the screenshot I originally posted. Then proceed with the rest of the install. Edited October 20, 2023 by Clover13
Clover13 Posted October 20, 2023 Author Posted October 20, 2023 12 minutes ago, Clover13 said: Figured it out. Once your Docker containers are up and running, run the following command from terminal: docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' WHATEVER_YOUR_MARIADB_CONTAINER_NAME_IS This will return an IP address that you can then use in the Host form field of the IPS installation Server Details section in the screenshot I originally posted. Then proceed with the rest of the install. Realizing this may be due to the IPS file system being externalized from the Docker container. I need to revisit adding the IPS file system as part of the Docker build so it is entirely self contained and internalized. I'm missing something in the setup there. Never the less, it is a "a way" to connect the IPS install to the MariaDB container.
Recommended Posts