This is a Docker Demo for a PHP image on Docker Hub. Feel free to follow along.
Please note these installation instructions are for Ubuntu Linux 16.04 or higher. Email me if you have a different distribution or operating system.
First, you have to install git.
sudo apt install git
Also, you have to have Docker.
snap install docker
sudo apt install docker.io
Next, build the image with Docker.
docker build -t demo01 .
You call your Docker image however you like by replacing demo01 with anything.
If you get a permission denied error, add your user to the Docker group.
sudo usermod -aG docker wyatt
Replace wyatt with your user.
Finally, run your image with port 80 exposed.
docker run -p 80:80 demo01
Open your browser and navigate to localhost. You should see a webpage. Congratulations! You have built a Docker image and ran a Docker container!
To close or shutdown your container, invoke Control+C.
Email me with the locally downloaded repo and we'll have a disscusion.