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
Tag: docker
Return the ls -l output in docker container
So I have a docker container running which has a couple of folder/files inside. When I go inside the container I can see that they are: hostmachine$> docker exec -it testContainer bash testContainer@testContainer:~$ ls -l My question is: What script, how can I use it on my hostmachine that will: 1) Echo back (return) the following info from the container:
Getting 32 bit Centos docker image
I was trying to run 32 bit Centos in container: Inside container I run command uname-a in order to know it is 32 bit. Got output: According to my understanding it is 64 bit version and not expected 32 bit one? What I do wrong while getting 32 bit Centos? Answer Containers share kernel with the host system. Thats why
How to connect to docker container from localhost
I created a docker container which is running 2 java processes – one of the processes is listening on port 4444 and should have access from browser hitting the following URL: http://{host}:4444/grid/console How do I hit this URL from my browser on the host – connect to the container on port 4444? This is the response from docker inspect: Answer
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)
Using `groupadd` in Docker container
I’m using Ubuntu 14.04 Trusty Tahr, and a quick peek at /etc/group reveals When I tried to add staff, I got an error message as I would expect (being that staff is already defined with gid 50). The unexpected part is when I tried to add a user with the staff group. What am I doing wrong here? It don’t
Can I run docker diff from a container on the same host as the container I want to run the diff on?
I have two containers running on a host. When I’m in container A I want to run a diff on container B compared to it’s image to see what has changed in the filesystem. I know this can be ran easily from the host itself, but I’m wondering is there any way of doing this from inside container A, to
Can not start docker engine in Oracle Linux
I followed the instructions in this blog “https://blogs.oracle.com/hlsu/install-docker-on-oracle-linux-7” to install docker engine in my Oracle Linux 7 server. This is my log for yum install docker-engine : it seems to have installed correctly but the next step i,e. to start the docker gives me this error : —># systemctl start docker –>#systemctl status docker.service –>#journalctl -xe -l -u docker |
localhost refuses access on port during Docker tutorial
I’m currently getting started with Docker on a Linux VM provided by my university. To get started with docker I’m doing their tutorial (https://docs.docker.com/get-started/part2/#run-the-app). After creating the files the tutorial says to use the command: docker run -p 4000:80 <name of container> This should host the container on http://localhost:4000 because port 80 is mapped to 4000. But unfortunately when I
Windows docker container vs Linux docker container
I am new to the Docker/Kubernetes world in general. As i am just starting with the whole architecture i have the following: Azure Container Service — up and running using Linux for master and agents Docker for windows on my machine — up and running automated build for a .NetCore application on VSTS using Docker task to build and push