• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    해결됨

docker 설치 후 첫 실행 시 docker.sock. 에러

23.09.30 18:29 작성 23.09.30 20:12 수정 조회수 381

0

mac os 로컬에 터미널로 아래와 같이 설치를 했습니다.

desktop 버전을 설치하지 않은 이유는,

현재 사내 업무용 맥북으로 개인실습을 하고 있어서 docker for desktop 버전을 사용할 수 없기 때문입니다 ! ㅜ

$ brew install docker
$ brew install docker-compose

첫 실행 시에 아래와 같은 에러로 진행이 안됩니다ㅜ 구글링해서 시도했던건,

$ docker run -it -p 8080:80 nginx
docker: Cannot connect to the Docker daemon at unix:///Users/.docker/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
$ dockerd -H /var/run/docker.sock
zsh: command not found: dockerd

$ sudo systemctl status docker
sudo: systemctl: command not found

$ systemd
zsh: command not found: systemd

계속해서 systemd가 없다고 해서 systemd를 설치를 시도했는데

이에 대해서도 에러가 나오더라고요ㅜ Error: systemd: Unsatisfied requirements failed this build.

$ brew install systemd

Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 5 taps (homebrew/cask-fonts, homebrew/services, caskroom/cask, homebrew/core and homebrew/cask).
==> New Formulae
biome                      gotestwaf                  mtbl                       sqlsmith
blake3                     helidon                    numbat                     squiid
build2                     iocextract                 orcania                    tailwindcss
caracal                    ldeep                      postgresql@16              uffizzi
checkdmarc                 libimobiledevice-glue      pter                       web-ext
colmap                     libmapper                  qalculate-qt               yder
dovi_tool                  llvm@16                    recoverpy
ggshield                   modsecurity                scoutsuite
==> New Casks
akuity                cloudnet              meld-studio           proxy-audio-device    telegram-a
akuity                dropshelf             meld-studio           reqable               telegram-a
ava                   dropshelf             mutedeck              reqable               to-audio-converter
ava                   ecodms-client         mutedeck              routine               to-audio-converter
batteryboi            ecodms-client         muyu                  routine               twelite-stage
batteryboi            expo-orbit            muyu                  rustrover             twelite-stage
chainner              expo-orbit            paulxstretch          rustrover             wetype
chainner              finbar                paulxstretch          sf                    wetype
clinq                 finbar                playdate-mirror       sf
clinq                 font-gabarito         playdate-mirror       spundle
cloudnet              font-pixelify-sans    proxy-audio-device    spundle

You have 23 outdated formulae installed.

systemd: Linux is required for this software.
libcap: Linux is required for this software.
Error: systemd: Unsatisfied requirements failed this build.

구글링해보니 `launchctl` 가 설치되어있는 사용자에 대해서

이런 증상이 나오는 것 같습니다.

저도 `launchctl`에 대해선 설치가 되어있는걸로 확인했는데..

어떻게 해야 해결이 될지 도움을 요청드립니다 !

답변 2

·

답변을 작성해보세요.

1

손예인님의 프로필

손예인

질문자

2023.09.30

minikube 로 해결했습니다 :)

감사합니다.

0

안녕하세요. 제가 최근에 인프런에 접속을 하지 못했어서 질문을 이제야 봤네요.

답변이 늦어 죄송해요.


minikube로 해결하셨다니 다행이예요.
직접 해결할 정도로 성장한 스스로를 칭찬해주셔도 좋겠어요. ^^