Skip to content

Commit

Permalink
fix: added ExposedPorts to docker APIs
Browse files Browse the repository at this point in the history
fixes #146
  • Loading branch information
ABeltramo committed Nov 18, 2024
1 parent 44e0096 commit 34c56a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/src/platforms/all/docker/docker/docker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ std::optional<Container> DockerAPI::create(const Container &container,

auto post_params = parse_json(custom_params).as_object();
post_params["Image"] = container.image;
post_params["ExposedPorts"] = exposed_ports;
merge_array(&post_params, "Env", json::value_from(container.env).as_array());

if (auto host_cfg = post_params.if_contains("HostConfig")) {
Expand Down

0 comments on commit 34c56a3

Please sign in to comment.