misskey-hub icon indicating copy to clipboard operation
misskey-hub copied to clipboard

Cannot run docker compose on MacOS

Open tuyen-vuduc opened this issue 2 years ago • 1 comments

  1. Info
  • Run docker compose build
{user-dir}/.docker/buildx/current: permission denied
  • Run sudo docker compose build
[+] Building 1.1s (2/4)                                                                                                   
[+] Building 1.2s (4/4) FINISHED                                                                                          
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 2.27kB                                                                               0.0s
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 35B                                                                                     0.0s
 => CANCELED [internal] load metadata for docker.io/library/node:18.13.0-bullseye-slim                               1.1s
 => ERROR [internal] load metadata for docker.io/library/node:18.13.0-bullseye                                       1.1s
------
 > [internal] load metadata for docker.io/library/node:18.13.0-bullseye:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``
  1. Environment
  • MacOS Monterey 12.6.2 (21G320)
  • Docker version 20.10.22, build 3a2c30b

tuyen-vuduc avatar Feb 04 '23 11:02 tuyen-vuduc

running docker command on root permission is deprecated.

To solve this, remove {user-dir}/.docker/buildx and run docker compose build again (don't run as root)

CyberRex0 avatar Feb 09 '23 11:02 CyberRex0