Change PHP-Code in 1.8 with Docker installation on Ubuntu

I don’t know the answer off the top of my head to your first question. @dan can probably advise when he’s free.

Re: PHPMyAdmin - yes - you would run it in its own container, and link that to your MySQL container.

You need two things. First, name of your MySQL container, which you can get by running docker ps. You need the one with cms-db in the name. Second, you need the name of the network the MySQL container is running in, which you can get by running docker network ls

In my case:

Container name: xibodocker_cms-db_1
Network name: xibodocker_default

You also need to pick a port for PHPMyAdmin to be available on. I chose 8080.

You would therefore run:

docker run --name phpmyadmin -d --network=xibodocker_default --link xibodocker_cms-db_1:db -p 8080:80 phpmyadmin/phpmyadmin

PHPMyAdmin will then be running on port 8080, and you would log in with the username cms and the password you picked in config.env.

When you’re done with PHPMyAdmin, you can simply run

docker stop phpmyadmin to stop it temporarily (and then docker start phpmyadmin to start it again if needed later), or docker rm phpmyadmin to remove it completely.