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

Omit 0 ShmSize from HostConfig JSON to resolve compatibility issue with Docker 1.9.1 #237

Merged
merged 1 commit into from
Apr 14, 2016

Conversation

hrobertson
Copy link

In Docker 1.9.1, an SHMSize of 0 is invalid and results in an error rather than being replaced by the default value.
In applications such as Drone that use dockerclient while not exposing all config values, this issue renders the application unusable with Docker 1.9.1.

In Docker >= 1.10 this is not an issue as the behaviour for an SHMSize of 0 is the same as nill (See acfd5eb). However, there are reasons for some people to be pinned to Docker 1.9.1 for the time being, eg when using Openshift.

I have not added tags to other fields as I wanted to limit the scope of this change to fixing this specific issue.

@crosbymichael, @vieux, @ehazlett

Thanks

…omitted, then shmsize will be set to Docker's default.
@hrobertson hrobertson changed the title Omit 0 ShmSize from HostConfig JSON Omit 0 ShmSize from HostConfig JSON to resolve compatibility issue with Docker 1.9.1 Apr 13, 2016
@ehazlett
Copy link
Collaborator

lgtm

@vieux
Copy link
Contributor

vieux commented Apr 14, 2016

LGTM

@vieux vieux merged commit 91d7393 into samalba:master Apr 14, 2016
@hrobertson
Copy link
Author

Thank you 👍

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.

4 participants