I have docker installed on my macbook pro OS Sierra 16G1212
I have a simple docker file in /mypath/Dockerfile
When I try the command:
docker build .
I get an error:
error checking context: 'can't stat '/Users/bdisha/Library/Caches/com.cisco.Jabber/com.apple.opencl''.
What am I doing wrong?
Thank you
The problem was resolved by me creating a "dockerfiles" directory and moving my Dockerfile in there.
After that, I could manage to build the image just fine.
Related
I am trying to run the docker docker-compose build command in Windows but it isn't running. I get the following error.
[+] Building 0.0s (0/0)
error during connect: This error may indicate that the docker daemon is not running.: Get "http://%!F(MISSING)%!F(MISSING).%!F(MISSING)pipe%!F(MISSING)docker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.: driver not connecting
My docker-compose version is v2.5.0 but it doesn't let me run the build command. I even installed Docker for Windows and it only shows me the following issue.
Not sure how to proceed with this.
I installed the Docker Desktop Preview for M1 chipset's Mac. The installation was good and I didn't see any kind of error reported. However when I tried to run docker following the tutorial, I get the following error.
docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory
This is the command that show the error:
docker run -d -p 80:80 docker/getting-started
I don't know what I am missing, is there any way to fix this error? What is it due of?
EDIT: I fixed the issue running clean/purge the data. Now it seems to be working
See here, seems to be known issue: https://github.com/docker/for-mac/issues/5253
I installed docker with the instructions here, downloading from docker-hub
https://docs.docker.com/docker-for-mac/install/
But when I run docker-compose I get this error
pyenv: docker-compose: command not found
The `docker-compose' command exists in these Python versions:
3.6.5/envs/myenv
Also, docker-compose is available under /Users
which docker-compose
/Users/<username>/.pyenv/shims/docker-compose
In this link says, docker-compose for mac need not be installed explicitly as it is part of docker for desktop mac.
https://docs.docker.com/compose/install/
Is something wrong with my installation?
I ran into the same issue on macOS today. Turned out that you need to run the installed app once, it does some additional downloading and setup. That setup includes setting up your path variables.
docker-compose is a utility that is now a parameter in mac docker
so instead of docker-compose up, its now docker compose up
if you install docker from official website then docker-compose will come along with that for mac so need to either upgrade and documentation is present there.
I am trying to run docker on my macbook with sierra... It is okay to build and run on my openshift but I have a problem on local. I think the problem is in this line:
COPY . /tmp/app
and the docker cant copy files (including start.sh) to path. can you help me please?
I've just downloaded latest doc on my mac, and docker --version shows
Docker version 17.03.0-ce, build 60ccb22
No problem. Then I tried docker to run hello world, as the user guide:
$docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: EOF.
See 'docker run --help'.
Well it doesn't automatically download the helloworld image for me, seems it met some errors. How to fix it?
Thanks!