Category Archives: Docker

docker compose

By | September 15, 2020

Compose is a tool for defining and running multiple containers at once. For example if you want to create a wordpress website with a MySql database you can do this very easily with compose. Previously we learned that we could use docker files to define containers. With compose you use compose-yaml files to define your… Read More »

docker data

By | September 12, 2020

MySql Database Volumes When we create sql server we want to specify the volume using -v [volumeName]:[location]. If we don’t it will create a name on its own with GUID like c6d2e97041fcabf441ad0073809536979e3edde2373072533cec548b70002f95 which is very hard to use. let’s look at volume. Notice it has a volume mount point. This mount point is separate from… Read More »

make an image in docker

By | September 10, 2020

Up to this point we have created containers using images pulled down from the internet. Then made changes to those containers. As long we didn’t delete the containers the changes persisted. We can also save the container permanently to images. To demonstrate this let’s create a container using docker run –name myWeb1 -p 8080:80 -it… Read More »

get containers to talk to each other

By | September 9, 2020

Container ports We saw in the last blog we were using -p 8080:80. The -p parameter specifies which port to expose through the docker firewall. You can see how the port resolves using docker container port web1 To get the ip address of your container use docker container inspect –format ‘{{ .NetworkSettings.IPAddress }}’ web1 .… Read More »

knock on dockers door and get in

By | September 5, 2020

In the last blog we created containers and looked at them from the outside. Next we will install ubuntu and get inside our container. Once there we can play around and install an apache server. This will be fun. ubuntu play time Let’s create an ubunto container using the following command docker run –name myWebServer… Read More »

don’t dock docker, its great

By | September 3, 2020

Install docker on your mac Install docker on your mac using the following instructions. https://docs.docker.com/docker-for-mac/install/ Is it running? Type in docker version to see if docker is running properly. You should see both the client and a server listed with no errors. Docker help If you type in docker –help you will get a list… Read More »