The environment is MBA 2011 macOS High Sierra 10.13.6.
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 (maybe you didn't need upgrade)
brew update
brew upgrade
install docker with brew
brew install docker
brew cask install docker
(brew cask ~ seems to download dmg of docker desktop and install app)
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.
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 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