Comments (5)
Hi,
Unfortunately, the extra network interfaces created by pipework are not visible to Docker, and therefore, cannot be queried with the REST API.
Question: do you need to use IP addresses here? Couldn't you use the IP address of the host + mapped ports?
from pipework.
I want to start containers up dynamically from Jenkins, as I understand it the ports are not assigned dynamically I need to fix then when I call docker run -p. If that is correct then it means I have tovlidy every container rather than having n instances of 1 container. If it is possible to have dynamic port allocation then I can use host IP and the rest api to tell me the port. Is that possible?
from pipework.
You can have dynamic port allocation, no problem at all.
E.g., supposing that you want to start a container running a web server on port 80:
$ docker run -p 80 -d my_web_server
880af59a97f195470751f4a3e8569fb358b344dce2fa581199d2b06ae9f3294b
$ docker port 880af59a97f195470751f4a3e8569fb358b344dce2fa581199d2b06ae9f3294b 80
0.0.0.0:49157
Then you can connect to the host IP address on port 49157.
Does that help?
from pipework.
yes -sorry for late reply. All sorted now. Sorry for being a muppet.
from pipework.
No problem at all; I'm happy that we could help with this!
from pipework.
Related Issues (20)
- "State"
- Route dies after a while with lease renewal active HOT 1
- I hava deleted my container. but i still can ping this deleted container IP HOT 2
- after a container termination its interface is not destroyed HOT 1
- Macvlan DHCP fails with 'Error: argument "1500' with both dhclient and dhcp HOT 1
- Not passing dhclient options correctly: "hostnametest" is invalid lladdr HOT 2
- Resolving Docker container names broken HOT 1
- Host cannot telnet container after pipework command... HOT 1
- trying to setup vepa mode
- Docker Inspect Returned Invalid PID 0 HOT 3
- Could this project be compatible with Podman containers? HOT 2
- Sometimes, physical interface does not return to host after container is stopped. HOT 9
- have --wait also wait until interface is up HOT 1
- Can I use pipework to configure multi ipv6 address to one docker container? HOT 1
- Update for usage with cgroups v2? HOT 5
- vethxxx cannot be added into bridge HOT 1
- OCI Authenticate
- I want to hire an expert for a project HOT 1
- Connecting VM guest with Docker containers running on the same host HOT 1
- ./pipework: line 469: Address:: command not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipework.