Comments (1)
hello everyone is me again
it was just a very beginner issue
FROM
port_binding.insert(format!("{}",container_port.to_string()), Some(vec![PortBinding {
TO
port_binding.insert(format!("{}/tcp",container_port.to_string()), Some(vec![PortBinding {
//external port
host_port: Some(local_port.to_string()),
//localhost
host_ip: Some("0.0.0.0".to_string())
}]));
let host_config = HostConfig {
port_bindings: Some(port_binding),
..Default::default()
};
not sure if i should be doing this? I mean it is working but not sure if this was the intended answer
from bollard.
Related Issues (20)
- how to use github registry? HOT 1
- type_length_limit HOT 1
- Hyper 1.x upgrade
- `create_container` hanging HOT 3
- Why does exposed_ports in the Config struct have the type that it does? HOT 4
- Building an image using a local Dockerfile HOT 2
- Stream doesn't close after exec log
- Problems Connecting w/ HTTP HOT 1
- How to import images from tar using stream HOT 3
- docker manifest inspect
- Add Docker Socket availability check during connection creation HOT 3
- Unexplained race condition in v0.16 causing "runtime dropped the dispatch task" HOT 8
- Support for multiple image build tags? HOT 1
- code is inactive due to #[cfg] directives: feature = "buildkit" is disabled HOT 4
- How to specify multi-stage build target in build_image? HOT 1
- Add a `Docker::connect_with_url()` method HOT 4
- Generic strategy for health checking a container? HOT 1
- Unclear error when docker is not running HOT 2
- UpdateContainerOptions has i_ops and cp_us instead of iops and cpus HOT 2
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 bollard.