Hi Team I want to check the container as one of the service was not running, for that, I am giving below command.
docker exec -it 494e5de406f3 /bin/bash
Then I am getting below error
Error response from daemon: Container 494e5de406f3480268fbb9d8e22c41a5bc0ab8aac28d29ac035849d12c1579d5 is not running
Related
I try to run the following code, but in the end I deal with the opposite error.
(venv) PS D:\project\bookstore> docker-compose up
[+] Running 0/0
Container bookstore-web-1 Creating 0.0s
Error response from daemon: invalid volume specification: 'D:\project\bookstore:/code:rw'
I am having this very simple python script (on pycharm) where I set 'nginx' server by pulling it from the hub, this is my code:
import docker
import requests
client = docker.from_env()
img = client.images.pull('nginx:latest')
client.containers.run(img, detach=True, ports={'80/tcp': 8080})
r = requests.get('http://localhost:8080')
print(r.status_code)
I am getting the following error:
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', error(13, 'Permission denied'))
when I am running this code using 'ipython' via terminal I am not getting any error and everything is working as expected.
I tried to look after a solution using the network with no success.
try to add current user to your usergroup
sudo groupadd docker
sudo usermod -aG docker $USER
more info on https://docs.docker.com/engine/install/linux-postinstall/
I have a docker container which runs as Conan server. I am trying to upload some Conan packages from another docker container to conan server. After entering username and passwd I am getting following error
Error uploading file: conanmanifest.txt,
'HTTPConnectionPool(host='localhost', port=9300): Max retries exceeded with url: /v1/files/hello/0.1/demo/testing/0/export/conanmanifest.txt?signature=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyZXNvdXJjZV9wYXRoIjoiaGVsbG8vMC4xL2RlbW8vdGVzdGluZy8wL2V4cG9ydC9jb25hbm1hbmlmZXN0LnR4dCIsInVzZXJuYW1lIjoiZGVtbyIsImZpbGVzaXplIjo1OCwiZXhwIjoxNTg1NDQyMjYyfQ.7sHncjZ7J8gV5HENMqCIwLe7b483QfrGJ2PVyolvjC4
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99c84d2e50>:
Failed to establish a new connection: [Errno 111] Connection refused'))'
ERROR: hello/0.1#demo/testing: Upload recipe to 'my_server' failed: Execute upload again to retry upload the failed files: conanfile.py, conanmanifest.txt. [Remote: my_server]
ERROR: Errors uploading some packages
I ran the following command
docker run -t -p 9300:9999 --name mycont my_conan
then edited server.conf file accordingly
port:9300
public_port:9999
host_name: containerIP
From now on I expect to reach by curl http://localhost:9999 but getting
Failed to connect to localhost port 9999: Connection refused
PS: From my host to the server, it works perfectly fine. Bu the error is appearing when i want to upload from container to container
I solve it by copying a custom config file to docker container. Otherwise I could not override default config file.
1. Write custom config file
2. COPY or ADD to image (in Dockerfile)
3. mv custom.conf /path/to/directory/ (from entrypoint)
Hi Team I want start an exited container , for that i am giving below command.
docker exec -it d16f0e1700ac /bash
Then i am getting below error
Error response from daemon: Container d16f0e1700acf114f1ee36d2b58299e8de0595bc5a8ab6f69ca475f34cbfe939 is not running
you have to start it, exec is only for running commands for already running containers, do
docker start d16f0e1700ac
I'm using Elastic Beanstalk to deploy a Docker Image I've created. I created a .zip file with a Dockerfile and Dockerrun.aws.json file.
When I deploy, I get the following error:
[2015-11-02T18:08:30.366Z] ERROR [4515] : Command execution failed: Activity failed. (ElasticBeanstalk::ActivityFatalError) caused by: jq: error: Cannot iterate over null ab6ac43aeaf75fb000d02a1fee73e829a92cef629bad46e6b727dc967f837b54
Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Nov 2 18:08:30 UTC 2015:. Check snapshot logs for details. (ElasticBeanstalk::ExternalInvocationError) caused by: jq: error: Cannot iterate over null ab6ac43aeaf75fb000d02a1fee73e829a92cef629bad46e6b727dc967f837b54
Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Nov 2 18:08:30 UTC 2015:. Check snapshot logs for details. (Executor::NonZeroExitStatus)
[2015-11-02T18:08:30.366Z] ERROR [4515] : Command CMD-Startup(stage 1) failed!
What's odd is that when I use elastic beanstalk CLI to deploy locally, it works fine. Any ideas on what could be happening here?
You'll want to add the following bit to your Dockerrun.aws.json file to get past this issue.
"Volumes": []