Docker installation

Docker installation

Execution environment

スクリーンショット 2020-12-31 8.57.47.png

Installation

% brew install docker

Verification

% docker -v
% Docker version 19.03.14, build 5eb3275

I wondered if I could go with this. ..

% docker-compose up
% zsh: command not found: docker-compose

It seems that you have to install docker-compose. .. Install with curl and grant permissions.

% sudo curl -L https://github.com/docker/compose/releases/download/1.27.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
% sudo chmod +x /usr/local/bin/docker-compose

Verification

% docker-compose -v
docker-compose version 1.27.4, build 40524192

It should have been installed successfully. .. .. Verification

% docker-compose up   
Traceback (most recent call last):
  File "site-packages/urllib3/connectionpool.py", line 677, in urlopen
  File "site-packages/urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1252, in request
  File "http/client.py", line 1298, in _send_request
  File "http/client.py", line 1247, in endheaders
  File "http/client.py", line 1026, in _send_output
  File "http/client.py", line 966, in send
  File "site-packages/docker/transport/unixconn.py", line 43, in connect
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/requests/adapters.py", line 449, in send
  File "site-packages/urllib3/connectionpool.py", line 727, in urlopen
  File "site-packages/urllib3/util/retry.py", line 403, in increment
  File "site-packages/urllib3/packages/six.py", line 734, in reraise
  File "site-packages/urllib3/connectionpool.py", line 677, in urlopen
  File "site-packages/urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1252, in request
  File "http/client.py", line 1298, in _send_request
  File "http/client.py", line 1247, in endheaders
  File "http/client.py", line 1026, in _send_output
  File "http/client.py", line 966, in send
  File "site-packages/docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/docker/api/client.py", line 205, in _retrieve_server_version
  File "site-packages/docker/api/daemon.py", line 181, in version
  File "site-packages/docker/utils/decorators.py", line 46, in inner
  File "site-packages/docker/api/client.py", line 228, in _get
  File "site-packages/requests/sessions.py", line 543, in get
  File "site-packages/requests/sessions.py", line 530, in request
  File "site-packages/requests/sessions.py", line 643, in send
  File "site-packages/requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 67, in main
  File "compose/cli/main.py", line 123, in perform_command
  File "compose/cli/command.py", line 69, in project_from_options
  File "compose/cli/command.py", line 132, in get_project
  File "compose/cli/docker_client.py", line 43, in get_client
  File "compose/cli/docker_client.py", line 170, in docker_client
  File "site-packages/docker/api/client.py", line 188, in __init__
  File "site-packages/docker/api/client.py", line 213, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
[31319] Failed to execute script docker-compose

Lots of errors. .. Try downloading Docker from the official page. Install for the time being. スクリーンショット 2020-12-31 9.31.53.png スクリーンショット 2020-12-31 9.38.23.png

Start up safely What was it

Recommended Posts

Docker installation
Docker installation on CentOS 6
Docker installation and initialization
Docker installation on WSL2
docker
Latest docker installation (Ubuntu 20.04 and Ubuntu 20.10)
docker memo
kubernetes + docker
About Docker
Docker Intellij
Docker basics
Wildfly installation
About Docker
Docker command
Docker memorandum
Understand Docker
Docker memorandum
Gradle installation
java installation
Easy installation of Docker with snap (1 command)
Getting Started with Docker for Mac (Installation)
Build Cakephp environment from docker installation Ubuntu
Dealing with composer installation errors in Docker
docker tutorial (memo)
What is Docker?
Docker basic summary
Technical memorandum (Docker)
Docker + Laravel + Codeception
[wip] Docker notes
Memorandum docker command
Java installation jdk
Docker command list
What is Docker
Simple installation of nginx and Docker using ansible
docker volume checked
Docker command memo
docker basic command
Docker basic commands
[Memo] docker summary
OpenJDK 11 installation memo
First CentOS 8 installation
Docker study notes
Docker command summary
Quick docker / nginx
Small Docker container
Docker in LXD
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
Rails Docker ~ Part 1 ~
Rails Docker ~ Part 2 ~
Docker command memorandum
heroku: docker: deploy
/ n \ n docker java
What is Docker
iPLAss installation summary
Docker + Spring-boot start
About Docker capacity
clang ++ docker upgrade
Docker environment construction
[Docker] Command summary
[Docker] Command list
[Docker cheat sheet]