How to fix the missed file when GCP did not find, running Docker, on macOS?

Hello,

I followed the tutorial Quickstart for Docker, but I got an error.

Here is the error:

gcloud builds submit --tag gcr.io/docker-wordpress-222800/quickstart-image .
ERROR: gcloud crashed (OSError): [Errno 2] No such file or directory: './.local/share/akonadi/socket-Gustavos-Mac-mini.local'

I use:

  • macOS 10.13.6
  • zsh

I installed:

  • docker and docker-swarm from Homebrew
  • Macports

Comments (3)

Gijo Varghese's photo

Is the Dockerfile in the correct directory you're pointing?

Gustavo Benedito Costa's photo

Deaf-born, computer science student and language lover

Yes, here is the Dockerfile codes:

FROM alpine
COPY quickstart.sh /
CMD ["/quickstart.sh"]

Dockerfile and quickstart.sh are in the same directory (home).

Gijo Varghese's photo

A WordPress speed enthusiast

Can you try this is your .Dockerfile

COPY . /home/app/ 
WORKDIR /home/app/
CMD ["/home/app/quickstart.sh"]