I have a Angular Project running in a docker container at port 4200. I have done a port mapping from docker container’s 4200 port to my localhost 4200. I am running this on Ubuntu 16.04. When doing netstat -nltp, I get output tcp6 0 0 :::4200 :::* LISTEN My Dockerfile looks like : I expected when running curl :::4200, to
Tag: docker-compose
Docker-Compose: Service xxx depends on service xxx which is undefined
I’m having this error: ERROR: Service ‘db’ depends on service ‘apache’ which is undefined. Why is it saying that apache is undefined? I check the indentation. Should be the right one. Answer No, it’s not defined. You have overwritten one services with the other one. You should fix the configuration:
Starting container process caused “exec: \”tail -f /dev/null\”: stat tail -f /dev/null: no such file or directory
Because I am trying to keep a container running I specified the “tail -f /dev/null” as command in the docker compose file: After I run docker-compose up I get the following error: ERROR: for serviceName Cannot start service serviceName: b’OCI runtime create failed: container_linux.go:348: starting container process caused “exec: “tail -f /dev/null”: stat tail -f /dev/null: no such file or
How can I expose a port from ASP.NET Core in Docker linux container in Windows?
I have several ASP.NET Core services defined in docker-compose. I need to be able to expose port in the host network (I use linux containers on Docker for Windows 18.03.0-ce). Sample: Services C1 and C2 are running in containers. Service H3 is running directly in the host, not in container. All services (C1, C2 and H3) must be accesible to
docker-compose exec command works into container but not from my host machine
I need to run a command into a chromedriver container passing an ip from a php-fpm container. The php-fpm container hostname is ‘php-fpm’. Both containers are in the same network. So this guys can see each other. If I access the chromedriver container and run this command, it works properly: chromedriver –url-base=/wd/hub –whitelisted-ips=$(getent hosts php-fpm | cut -d’ ‘ -f1)
docker-compose up very slow but docker-compose run on linux very fast
As the title said. Docker-Compose is very slow while running a container. It keeps saying it’s trying to attach to… when i run “docker-compose up”. It takes about 10 minutes before the python script is running. On the other hand.. If I start “docker-compose run docker-build” the python script runs in a second. If i use “docker run –rm -it
Docker — mounting a volume not behaving like regular mount
I am new to docker so I am certain I am doing something wrong. I am also not a php developer but that shouldn’t matter in this case. I am using a drupal docker image which has data at the /var/www/html directory. I am attempting to overwrite this data with a drupal site from a local directory on the host
“Permission denied” in Docker container unless –privileged=true
I’m trying to run an nginx container as a service and share 2 volumes between the host machine and container, so that files in one directory are automatically shared with the other paired directory. My docker-compose.yml is the following: The only way I can get this to work currently is by adding privileged: true to the docker-compose file, however I
Docker-compose – mongodb could not be authenticated
After installing Docker Toolbox on Windows 10 and starting docker-machine, I run docker-compose up, I run into this error: The following packages cannot be authenticated mongodb-org-shell The code in the dockerfile: RUN apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv EA312927 RUN echo “deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse” | tee /etc/apt/sources.list.d/mongodb-org-3.2.list RUN apt-get update RUN apt-get install -y mongodb-org-shell RUN apt-get install -y mongodb-org-tools
Prevent Docker Compose from creating separate network
I discovered that Docker Compose places containers in a separate network when using version 2 of their YAML syntax. This makes linking with existing containers difficult. Is there a way to prevent this, and revert to the behavior of version 1, without actually reverting? Answer Is there a way to prevent this, and revert to the behavior of version 1,