I have ruby application running inside docker.I tried to run docker container on ubuntu VM which worked fine.But when I tried to run the same docker-ruby application on another VM ,it is giving me error as-
Step 14/17 : RUN bundle install --gemfile test/Gemfile
---> Running in b545e371e3
/usr/bin/bundle: 2: exec: /usr/local/rvm/bin/rvm-exec: not found
ERROR: Service 'test' failed to build: The command '/bin/sh -c bundle install --gemfile test/Gemfile' returned a non-zero code: 127
I'm using same repository and ruby version(1.8.7) on both ubuntu systems, still facing issue.Can anyone help/suggest some solution on this issue? Thanks in advance.
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 got a problem on running ddev on my ubuntu 20.04.
Installation of ddev ran without any problems (ddev version v1.15.0), but if i try starting a container it always runs into following error:
.PermissionError: [Errno 13] Permission denied: '/home/user/.ddev/ssh-auth-compose.yaml'
Failed to start api-bundle: failed to start ddev-ssh-agent: Failed to run docker-compose [-f /home/user/.ddev/ssh-auth-compose.yaml -p ddev-ssh-agent up --build --force-recreate -d], err='exit status 1', stdout='', stderr='.PermissionError: [Errno 13] Permission denied: '/home/user/.ddev/ssh-auth-compose.yaml''
I've already tried to give the ddev and home directory and all other directories above a full access (chmod -R 777) the user of the .ddev directory in my project is the same as my home directory owner.
Running .ddev with the same project on a diffrent Ubuntu 19.04 runs like charme.
If i omit the ddev-ssh-agent the container is starting, but crashing when trying to write to router-compose.yaml.
Current docker version is 19.03.11, build dd360c7
Docker-Compose version 1.25.5,
both installed via snap.
I have no clue what to try next,
so hopefully you can help me.
Thanks in advance.
Do not install docker-compose with snap (other apt). This should solve your issue: https://github.com/drud/ddev/issues/2347#issuecomment-652804548
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.
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!
Hey I tried running the command
sudo docker run -d -P training/webapp python app.py"
from the tutorial but I keep getting the error
FATA[0000] Error response from daemon: Cannot start container.
I downloaded the image fine but the trouble occurs whenever I try to run it. I checked the port sudo docker port (name) and nothing shows up. I'm guessing the issue is that the PORTS aren't being set up properly. I have a mac and I'm using vmware with ubuntu and I downloaded the ubuntu set up for docker.
Is there anyway to fix this? Any help would be greatly appreciated.