Docker is giving error in running RabbitMQ - docker

I have this issue that Docker is giving exception in RabbitMQ and not running the project. It was working fine like two days before
Error Code:
Severity Code Description Project File Line Source Suppression State
Error The DOCKER_REGISTRY variable is not set. Defaulting to a blank string.
Creating network "dockercompose17804906324906542053_default" with the default driver
Building syncserviceexchange
Building webapisyncserviceexchange
Creating dockercompose17804906324906542053_rabbit2_1 ...
Creating elasticsearch ...
Creating mysql1 ...
Creating myadmin ...
Creating dockercompose17804906324906542053_rabbit2_1 ... error
ERROR: for dockercompose17804906324906542053_rabbit2_1 Cannot start service rabbit2: driver failed programming external connectivity on endpoint dockercompose17804906324906542053_rabbit2_1 (5ff7c5b4d0fa9db5bc8b35dc4010c306c0e357a97d1ea912bd9b290fdfa6f8fd): Error starting userland proxy: Bind for 0.0.0.0:5672 failed: port is already allocated
Creating mysql1 ... error
ERROR: for mysql1 Cannot start service db: error while creating mount source path '/host_mnt/g/Flexfone/Imp&Rec/Flexfone/SyncServiceExchange/datadir': mkdir /host_mnt/g: file exists
Creating elasticsearch ... done
Creating myadmin ... done
ERROR: for rabbit2 Cannot start service rabbit2: driver failed programming external connectivity on endpoint dockercompose17804906324906542053_rabbit2_1 (5ff7c5b4d0fa9db5bc8b35dc4010c306c0e357a97d1ea912bd9b290fdfa6f8fd): Error starting userland proxy: Bind for 0.0.0.0:5672 failed: port is already allocated
ERROR: for db Cannot start service db: error while creating mount source path '/host_mnt/g/Flexfone/Imp&Rec/Flexfone/SyncServiceExchange/datadir': mkdir /host_mnt/g: file exists
Encountered errors while bringing up the project..

it says the port already used, you have to stop the previous container first:
Bind for 0.0.0.0:5672 failed: port is already allocated
you can use docker-compose down if you use docker-compose it will also stop all the services in that compose
or
use docker stop <container_name> to stop specific container
and if you updated the image remove it first and rebuild the image and rerun the containers, do any clean ups necessary but in this case you have to run it and configure it manually in the command line.
to see what docker containers running check docker ps .. if the port is not used there then another process took it in that machine OS check what could have done that

Related

how to open up docker-compose up when given these issues

docker-compose up has no configuration file provided: not found
this is given that I am in the directory where the docker-compose-LocalExecutor.yml file is.
What should my next steps be to be able to open airflow in localhost:8080
Note: I am using windows
Looking at previous stackoverflow posts, I have also tried docker-compose -f .\docker-compose-LocalExecutor.yml up, but it returns:
Error response from daemon: driver failed programming external connectivity on endpoint docker-airflow-master-webserver-1 (f5311e617e9076840eeda2343df931c4716b9ae33817ba1ed91c10c272df9766): Bind for 0.0.0.0:8080 failed: port is already allocated

starting service failed docker

I follow this install guide run dcm4chee in docker container, when I start the service up by sudo docker-compose -p dcm4chee start it gives me error
Starting ldap ... done
Starting db ... done
Starting arc ... failed
this is my docker-compose.yml.
docker-compose.env:
STORAGE_DIR=/storage/fs1
POSTGRES_DB=pacsdb
POSTGRES_USER=pacs
POSTGRES_PASSWORD=pacs
Why ldap and db start fine but arc failed.
Edit:
/var/local/dcm4chee-arc/wildfly:/opt/wildfly/standalone
/var/local/dcm4chee-arc/storage:/storage
these files are in docker-compose.yml in volumes attribute, but I didn't find wildfly folder/file in system.
It worked, the problem is that for some reason this up command (docker-compose -p dcm4chee up -d) failed to create the wildfly and storage folders,
so when I then run start command, the docker failed to start the service as the required folders wasn't created, the solution was simply run up command again,
this time it creates the folders correctly.

Error while checking if volume "nvidia_driver_410.48" exists in driver "nvidia-docker"

I come across this error when running an image on nvidia-docker. This image used to run well, but now it fails. The change in the device I'm made: cloned docker/compose, then removed docker/compose.
I manage to run nvidia-docker hello-world, but this does not use Nvidia drivers.
I replaced XXX instead of the full path.
running command:
nvidia-docker run --name my_test arg1 bash
Blockquote
docker: Error response from daemon: create nvidia_driver_410.48: found reference to volume 'nvidia_driver_410.48' in driver 'nvidia-docker', but got an error while checking the driver: error while checking if volume "nvidia_driver_410.48" exists in driver "nvidia-docker": Post http://XXXdocker%2Fplugins%2Fnvidia-docker.sock/VolumeDriver.Get: dial unix XXX/docker/plugins/nvidia-docker.sock: connect: connection refused: volume name must be unique.
Blockquote
Try to delete the old containers(including stopped containers), list and delete the nvidia docker volumes. Restart docker daemon if this does not solve the problem.
Else: try to purge/reinstall nvidia-container-toolkit and restart the docker daemon on top of the aforementioned step.

ERROR: for azerothcore-wotlk_ac-database_1 Cannot start service ac-database: driver failed programming external connectivity on endpoint

With Docker on Windows, when using docker-compose up , I get error message from console (git bash)
Command used: docker-compose up
Docker compose file: https://github.com/azerothcore/azerothcore-wotlk/blob/master/docker-compose.yml
Results:
ERROR: for azerothcore-wotlk_ac-database_1 Cannot start service ac-database: driver failed programming external connectivity on endpoint azerothcore-wotlk_ac-database_1 (a999876eaab9126abc6635a5d62ab31c5e14fd12439ec2747a42e72fb923a4af): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3306:tcp:172.19.0.2:3306: input/output error
ERROR: for ac-database Cannot start service ac-database: driver failed programming external connectivity on endpoint azerothcore-wotlk_ac-database_1 (a999876eaab9126abc6635a5d62ab31c5e14fd12439ec2747a42e72fb923a4af): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3306:tcp:172.19.0.2:3306: input/output error ERROR: Encountered errors while bringing up the project.
I did followed this link,
http://www.azerothcore.org/wiki/Install-with-Docker
and at first got the same message of yours.
The Problem is that the docker version have mysql in it,
and if you have installed mysql in the machine, you must uninstall it first.
(maybe, net stop mysql)
After that, docker-compose up runs well.

Permission Denied on port when starting HDP Sandbox Proxy on Docker (Windows 10)

I am getting the following error when trying to start sandbox-proxy (proxy-deploy.sh) on docker.
Have tried reinstalling, rebooting, checking existing in use ports using netstat -a -n. Nothing helped.
Error response from daemon: driver failed programming external connectivity on endpoint sandbox-proxy (b710798aa75668908d359602541ed4d8a3da4e4b8b2856f5e779453ea296aeef): Error starting userland proxy: Bind for 0.0.0.0:50111: unexpected error Permission denied
Error: failed to start containers: sandbox-proxy
Detailed snapshot of failure
Docker logs attempt as requested
Go to the location where you saved the Docker deployment scripts – refer to Deploy HDP Sandbox as an example. You will notice a new directory sandbox was created.
Edit file sandbox/proxy/proxy-deploy.sh
Modify conflicting port (first in keypair). For example, 6001:6001 to 16001:6001
Save/Exit the File
Run bash script: bash sandbox/proxy/proxy-deploy.sh
Repeat steps for continued port conflicts
More info : https://hortonworks.com/tutorial/sandbox-deployment-and-install-guide/section/3/#port-conflict

Resources