Connect to a locally installed database from a Docker container

Docker has its own networking space, trying to connect to the local IP Address of the container won’t work when the database is on the host machine. Normally you would provide the hostname, ip address or use localhost if the database is installed on the same machine locally ie 127.0.0.1. But when the database is …

Setting Up Docker on AWS EC2

Install Docker On Ubuntu 18.04 Bionic Beaver Aim Install Docker production ready on Ubuntu 18.04 LTS Bionic Beaver AWS EC2 instance Requirements AWS EC2 Account Level Easy Introduction AWS and Docker have revolutionised how web applications are hosted and managed in the cloud and how they are developed and deployed to customers. Docker allows developers …

Docker Official PHP container how to enable PDO

The Official PHP & Apache[1] container is a great starting point for a local development environment. One thing that might trip you up is if you try to install or run queries against a database. Out of the box, PDO drivers are not enabled. This will likely resort to the following errors: [PDOException]  could not find …