Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Override sneaky /start HostConfig params #1449

Merged
merged 4 commits into from
Sep 22, 2015
Merged

Override sneaky /start HostConfig params #1449

merged 4 commits into from
Sep 22, 2015

Conversation

paulbellamy
Copy link
Contributor

Fixes #1368

@bboreham bboreham self-assigned this Sep 18, 2015
proxy_start_container $HOST1 --name=c1
proxy docker_on $HOST1 create --name=c2 $SMALL_IMAGE grep "^1$" /sys/class/net/ethwe/carrier
# Now start c2 with a sneaky HostConfig
curl -X POST -H Content-Type:application/json -d '{"NetworkMode": "container:c1"}' http://$HOST1:12375/v1.20/containers/c2/start

This comment was marked as abuse.

@rade rade assigned paulbellamy and unassigned bboreham Sep 22, 2015
@rade
Copy link
Member

rade commented Sep 22, 2015

This should be branched off 1.1, not master.

@paulbellamy paulbellamy force-pushed the 1368-start-hostconfig branch 3 times, most recently from 19f6248 to 8873d01 Compare September 22, 2015 12:41
proxy docker_api_on $HOST1 POST /v1.20/containers/c3/start '{"Binds":[],"Dns":null,"DnsSearch":null,"ExtraHosts":null,"VolumesFrom":null,"Devices":null,"NetworkMode":""}'
assert "docker_on $HOST1 inspect -f '{{.State.Running}} {{.State.ExitCode}} {{.HostConfig.Dns}}' c3" "false 0 [$docker_bridge_ip]"

end_suite

This comment was marked as abuse.

@paulbellamy paulbellamy force-pushed the 1368-start-hostconfig branch 3 times, most recently from b80e465 to 27d9f3d Compare September 22, 2015 13:35
rade added a commit that referenced this pull request Sep 22, 2015
Override sneaky /start HostConfig params

Fixes #1368.
@rade rade merged commit 7d7c5ce into master Sep 22, 2015
@paulbellamy paulbellamy deleted the 1368-start-hostconfig branch September 22, 2015 14:15
@rade rade added this to the 1.2.0 milestone Oct 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants