I am trying to communicate between two docker containers that are present on different machines(Jetson AGX and Linux PC). I want to do this via a ethernet cable.
I have been able to ping the container on the Jetson from the container on the linux pc but not the other way around.
I need to access a service in a Linux docker container from a Windows docker container.
Setup:
Host: Windows 10 installed "Docker for Windows"
Linux Container: publish port 8080
Windows Container: access port 8080 of Linux container
Creating a shared network does not work: docker share network with windows and linux containers
Mixing Windows and Linux containers with docker-compose does not work, since platform is not supported anymore in docker-compose file: https://github.com/docker/compose/issues/5872
Am I missing something or is it not possible to access Linux container services from a windows container?
Host ip can change, so I need to pick IP address dynamically. I've found some solutions online for dockers running for Linux, but I can't find how to do it if you run docker container on Windows. Running it through docker compose file.
I am using docker toolbox on Mac. The setup looks like:
docker host - Boot2Docker VirtualBox VM running on Mac
docker client - Mac
I am using following command - docker run -it -v $PWD/dir_on_docker_client:/dir_inside_container ubuntu:14.04 /bin/bash to run a container with a volume mount. I wonder, how is docker able to mount volume from docker client (in this case Mac) into a docker container running on docker host (in this case, VM running on Mac)?
The toolbox VM includes a shared directory from the client. /c/Users (C:\Users) on Windows and /Users on Mac.
Directories in these folders, on the client, can be added as volumes in a container.
Note though that if you add for example /tmp as a volume, it will be /tmp in the toolbox.
The main problem is that virtulbox shares only your home folder with the docker machine at the moment you can only shares content inside this directory. It's uncomfortable but the unique way that I fund to resolve this problem is with the bootlocal.sh file, you can write this file inside your docker-machine to mount after the boot new directory
https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md#local-customisation-with-persistent-partition
Yesterday during this dockercon they announced a public beta for "Docker For Mac", I think that you can replace docker-machine with this tool, it provide the best experience with docker and macos, and it resolves this problem
https://www.docker.com/products/docker
I am configuring sentrifugo in a Docker container. I can't access the internet from my docker container. I am new to Docker. My host machine is running Ubuntu 14.04. Any suggestions?
Your container should access internet the same way. Please check your resolv.conf of container and network connective of docker host.