Steps to run docker on Mac

The environment is MBA 2011 macOS High Sierra 10.13.6.

First, install Command line tools and homebrew

First, install Command line tools and homebrew in Terminal.app.

To install Command line tools

xcode-select --install

Homebrew installation

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

To execute.

Homebrew update and upgrade

Homebrew update and upgrade (maybe you didn't need upgrade)

brew update
brew upgrade

install docker with brew

install docker with brew

brew install docker
brew cask install docker

(brew cask ~ seems to download dmg of docker desktop and install app)

If you get an error around here

if

Error: The following directories are not writable by your user:

I get an error like

You should change the ownership of these directories to your user. sudo chown -R $(whoami) /usr/local/share/man/man5

And

And make sure that your user has write permission. chmod u+w /usr/local/share/man/man5

If it is displayed, copy and paste it as it is and execute it.

sudo chown -R $(whoami) /usr/local/share/man/man5
chmod u+w /usr/local/share/man/man5

Install docker with brew again.

When brew cask ~ is completed, Docker.app should be added to the Finder application, so check it.

ls /Applications/ | grep Docker

You can also check it at the terminal.

Launch Docker.app

After installing Docker.app, start it.

open /Applications/Docker.app

When the Docker icon is displayed on the menu bar at the top of the desktop screen, startup is complete.

hello-world Try running the hello-world container.

docker run --rm hello-world

If the --rm option is specified, the container will be automatically deleted when the container is stopped.

Hello from Docker!

If you see something like this, Docker installation is complete. later

docker search jupiter

Looking for an image like

docker pull jupyter/datascience-notebook

The image is pulled like this.

If it fails at the time of hello-world or search

If there is no problem with the Mac itself, such as being able to connect to a web browser, review the docker settings. At the terminal

docker info

Since docker setting information is displayed in, check especially around HTTP Proxy. On Mac, you can set the Docker environment from Preferences by clicking the Docker icon in the top menu bar. Proxy is set from PROXIES and Manual Proxy configuration by clicking Resources.

Recommended Posts

Steps to run docker on Mac
How to run JavaFX on Docker
Run Embulk on Docker to convert files
Run Ubuntu + ROS with Docker on Mac
Run STS4 on Mac
Run phpunit on Docker
Steps to run local development of ASP.NET Core on Mac with docker-compose
Run VS Code on Docker
Run openvpn on Docker (windows)
Run SSE (Server-Sent-Event) samples on docker
Run puppeteer-core on Heroku (Docker edition)
Try using Redmine on Mac docker
Run lilypond on Docker on macOS Catalina to create sheet music
To beginners launching Docker on AWS
Run React on a Docker container
Run the AWS CLI on Docker
Run GUI application on Docker container
Use Docker on your M1 Mac
Run PureScript on a Docker container
Steps to install MySQL 8 on CentOS 8
Deploy Rails on Docker to heroku
Steps to install devtoolset-6 on CentOS 7
Steps to install Maven on Mac and use it in Eclipse
How to check Java installed on Mac
Customize OpenFOAM v8 Docker Image on Mac
Run NordVPN on Docker (Windows) Ubuntu container
How to install Eclipse (Photon) on Mac
How to switch Java versions on Mac
Until you run apache on ubuntu on docker
How to run Blazor (C #) with Docker
Steps to register Java files on GitHub
Liberty on Docker
Redmine on Docker
Run GUI application on Docker container (Japanese input)
Run mysql image on M1 MAC (Apple Silicon)
Settings to bypass Docker Hub restrictions on CircleCI
Run Edge (Chromium version) on Mac with Selenium
Run JSP Hello World with Tomcat on Docker
I made a Docker container to run Maven
[Java] 4 steps to implement splash screen on Android
How to use nginx-ingress-controller with Docker for Mac
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
Temporarily move Docker environment from Mac to AWS
When Kubernetes doesn't start on Docker Desktop for Mac
Install gradle on mac
Steps to set up Jenkins on your local Mac, create one job and succeed
Easy setup to run docker command without sudo (Linux)
Steps to push Docker image to GitHub Container Registry (ghcr.io)
How to run javafx with Raspberry Pi Posted on 2020/07/12
Steps to deploy to Heroku
Install Java on Mac
Docker installation on CentOS 6
Enable Docker BuildKit (mac)
Run Rubocop and RSpec on CircleCI and deploy to ECS
python notes on docker
List how to learn from Docker to AKS on AWS
Test run on rails
Run Pico with docker
Ssh to Ubuntu on VirtualBox on your Mac and do it until you install Docker
Run PostgreSQL on Java
Install Docker on Manjaro