programing

브루 인스톨 도커에는 도커 엔진이 포함되어 있지 않습니까?

stoneblock 2023. 9. 26. 21:57

브루 인스톨 도커에는 도커 엔진이 포함되어 있지 않습니까?

브루에서 도커를 설치하려고 하는데 엔진이 공식 공식 공식에 포함되어 있지 않은 것 같습니다.

brew install docker-machine docker-compose

그럼 이게 클라이언트만 설치하는 겁니까?엔진/대몬에 케그가 없습니까?

다음 단계는 macOS Sierra 10.12.4에서 정상적으로 작동합니다.Brew가 Docker를 설치한 후,docker명령(symbolic 링크)을 사용할 수 없습니다./usr/local/bin. 도커 앱을 처음 실행하면 이 심볼릭 링크가 생성됩니다.자세한 단계는 아래를 참조하십시오.

  1. 도커를 설치합니다.

    brew install --cask docker
    
  2. 도커를 발사합니다.

    • +를 눌러 Spotlight Search(스포트라이트 검색)를 불러오고 입력합니다.Docker도커를 발사합니다.
    • Docker needs priviled access 대화상자에서 확인을 클릭합니다.
    • 비밀번호를입력하고확인을 클릭합니다.

    이런 방식으로 도커를 실행하면 상태 메뉴에 도커 웨일 아이콘이 나타납니다.고래 아이콘이 나타나자마자 상징적인 링크는docker,docker-compose,docker-credential-osxkeychain그리고.docker-machine에 생성됩니다./usr/local/bin.

    $ ls -l /usr/local/bin/docker*
    lrwxr-xr-x  1 susam  domain Users  67 Apr 12 14:14 /usr/local/bin/docker -> /Users/susam/Library/Group Containers/group.com.docker/bin/docker
    lrwxr-xr-x  1 susam  domain Users  75 Apr 12 14:14 /usr/local/bin/docker-compose -> /Users/susam/Library/Group Containers/group.com.docker/bin/docker-compose
    lrwxr-xr-x  1 susam  domain Users  90 Apr 12 14:14 /usr/local/bin/docker-credential-osxkeychain -> /Users/susam/Library/Group Containers/group.com.docker/bin/docker-credential-osxkeychain
    lrwxr-xr-x  1 susam  domain Users  75 Apr 12 14:14 /usr/local/bin/docker-machine -> /Users/susam/Library/Group Containers/group.com.docker/bin/docker-machine
    
  3. 상태 메뉴에서 도커 웨일 아이콘을 클릭하고 도커가 실행 중임을 표시할 때까지 기다립니다.

    enter image description here enter image description here

  1. 도커가 정상적으로 작동하는지 테스트합니다.

    $ docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    78445dd45222: Pull complete
    Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    To generate this message, Docker took the following steps:
     1. The Docker client contacted the Docker daemon.
     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
     3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
     4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.
    
    To try something more ambitious, you can run an Ubuntu container with:
     $ docker run -it ubuntu bash
    
    Share images, automate workflows, and more with a free Docker ID:
     https://cloud.docker.com/
    
    For more examples and ideas, visit:
     https://docs.docker.com/engine/userguide/
    
    $ docker version
    Client:
     Version:      17.03.1-ce
     API version:  1.27
     Go version:   go1.7.5
     Git commit:   c6d412e
     Built:        Tue Mar 28 00:40:02 2017
     OS/Arch:      darwin/amd64
    
    Server:
     Version:      17.03.1-ce
     API version:  1.27 (minimum version 1.12)
     Go version:   go1.7.5
     Git commit:   c6d412e
     Built:        Fri Mar 24 00:00:50 2017
     OS/Arch:      linux/amd64
     Experimental: true
    

실행해 보십시오.

brew install docker

이렇게 하면 Mac에서 Docker-Machine(+ VirtualBox)을 실행해야 하는 Docker 엔진이 설치됩니다.

가상 상자가 필요 없는 최신 Mac용 도커를 설치하려면 홈브루의 Cask를 통해 설치할 수 있습니다.

brew install --cask docker 
open /Applications/Docker.app

홈브루와 함께 맥용 도커를 설치하는 방법:

brew install homebrew/cask/docker

명령줄 완료 설치하기

brew install bash-completion
brew install docker-completion
brew install docker-compose-completion
brew install docker-machine-completion

실행하면 도커 데스크톱이 설치되지 않습니다.brew install docker. 이미 이 방법으로 설치한 경우 먼저 다음을 사용하여 제거합니다.brew uninstall docker.

Docker Desktop을 설치하려면 다음을 실행합니다.

brew install homebrew/cask/docker

에서 도커를 시작합니다./Applications폴더를 한 번만 열고 비밀번호를 입력하면 다음과 같은 명령을 실행할 수 있습니다.docker --versionCLI가 작동하는지 확인합니다.

Mac용 도커 데스크톱은 유료 라이센스를 사용해야 하므로 엔터프라이즈 도커 사용자에게 적합하지 않습니다.Rancher Desktop은 3가지 주요 OS 모두를 위한 Docker Desktop의 실행 가능한 오픈 소스 대안입니다.

이 질문은 특히 맥 OS 사용자를 대상으로 하기 때문에 맥 OS에서 작동할 수 있도록 단계를 추가했습니다.

  1. 먼저 홈브루를 사용하여 도커를 설치합니다.brew install docker

  2. 랜처 데스크톱을 설치합니다.

  3. Kubernates Settings, 컨테이너 런타임을 다음으로 변경dockerd.

이윤!

업데이트: 이 장면에는 Colima(https://github.com/abiosoft/colima) 라는 이름의 또 다른 오픈 소스 컨테이너 런타임이 있습니다.

도커를 다시 설치하려면 다음을 실행해야 합니다.

brew reinstall homebrew/cask/docker

언급URL : https://stackoverflow.com/questions/40523307/brew-install-docker-does-not-include-docker-engine