docker-networking

docker network “l2bridge” - how to determine values for: subnet, gateway, DNS server and VLAN ID that should be used?

半城伤御伤魂 提交于 2021-01-29 06:29:34
问题 I have VM with virtual network, let's say "VN1" and I need to connect from my docker container to that VM in Windows in Azure for Azure Container Instance. The proper way is that I need to create new l2bridge network: docker network create -d "l2bridge" --subnet 10.244.0.0/24 --gateway 10.244.0.1 -o com.docker.network.windowsshim.vlanid=7 -o com.docker.network.windowsshim.dnsservers="10.244.0.7" my_transparent How I could determine these values in Azure: subnet: gateway: DNS Server: VLANID:

Get Mac-Address of Host from within Docker Container

时光怂恿深爱的人放手 提交于 2021-01-26 17:48:47
问题 In my dockerized application I need to have a hardware anchor and thought about using the Container's Mac-Address. But: since the Mac-Address of a Docker container ist volatile and dynamically assigned at container startup I cannot use this Mac-Address (see Docker docs) The MAC address is generated using the IP address allocated to the container to avoid ARP collisions, using a range from 02:42:ac:11:00:00 to 02:42:ac:11:ff:ff The Mac-Address of the Docker host would be a viable solution. How

Access a container by hostname in github actions from within an action

百般思念 提交于 2021-01-07 06:57:25
问题 I start a docker container within my github action and try to access it from an action. But the action is not able to resolve the hostname. How do add my container to the same docker network as the action and let the action access it by its hostname? steps: - name: Run Fuseki run: docker run -p 3030:3030 --name fuseki -d stain/jena-fuseki /jena-fuseki/fuseki-server --file=/staging/aksw.org.nt /aksw - name: curl uses: wei/curl@master with: args: https://fuseki:3030/aksw The complete file is

How to execute command from one docker container to another

旧时模样 提交于 2020-11-24 19:01:25
问题 I'm creating an application that will allow users to upload video files that will then be put through some processing. I have two containers. Nginx container that serves the website where users can upload their video files. Video processing container that has FFmpeg and some other processing stuff installed. What I want to achieve. I need container 1 to be able to run a bash script on container 2. One possibility as far as I can see is to make them communicate over HTTP via an API. But then I