Category Archives: Docker

How to run MySQL in Docker?

By | November 15, 2020

Getting MySQL up and running in Docker is very easy and fast but there are a few subtle things to note. Firstly there are 2 apparent options. or These handful of words are deceptively simple but you really need to understand what is happening under the covers. docker run mysql Firstly, the docker run mysql… Read More »

Docker pull mysql v mysql/mysql

By | November 15, 2020

Have you ever read articles where sometimes you see the docker command and sometimes and thought to yourself what is the difference? You can find out the difference by going to Docker Hub at: https://hub.docker.com/r/mysql/mysql-server v https://hub.docker.com/_/mysql Firstly, mysql is labeled the “official image” with over 1 billion downloads. The mysql/mysql-server is an “Optimized MySQL… Read More »

How to find out the location where Docker stores the images on MacOS

By | January 17, 2020

In Docker preferences, select “Disk” and you’ll see the disk image location. You’ll also see the allocated image size and the amount used as well. The location for me was: /Users/sean/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw (Sometimes it the extension can be .qcow2 as well) Other locations for previous versions and other OS’s are: /Users/MyUserName/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 $HOME/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 /Users/USERNAME/.docker/machine/machines

Docker Useful Commands

By | December 28, 2019

Images List: docker images -a Remove: docker rmi Image Image Remove all images: docker rmi $(docker images -a -q) Containers List: docker ps -a Remove: docker rm ID_or_Name ID_or_Name Stop all containers: docker stop $(docker ps -a -q) Remove all containers: docker rm $(docker ps -a -q) Volumes List: docker volume ls Remove: docker volume… Read More »

OSX Cannot connect to the Docker daemon. Is the docker daemon running on this host?

By | September 19, 2016

On a Mac, there are 2 ways to start docker. In a terminal, you can type >> docker-machine start cloudnthings:~ cloudnthings$ docker-machine start Starting “default”… (default) Check network to re-create if needed… (default) Waiting for an IP… Machine “default” was started. Waiting for SSH to be available… Detecting the provisioner… Started machines may have new… Read More »

Docker Toolbox v Docker for Mac

By | July 25, 2016

If you haven’t heard already, Docker for Mac has been out for since mid June allowing Docker to run natively in OSX without having to install Oracle Virtual Box which in turn provides a linux environment for Docker to run on. If you have Docker Tool box installed, you can uninstall it in a few… Read More »