Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for docker storage options #4908

Merged
merged 2 commits into from
Nov 21, 2018
Merged

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Nov 20, 2018

Add support for --storage-opts flags.

Making this PR targeting #4844 - to ease review, we can merge it into the PR or review it and merge it after the docker plugin PR is merged.

drivers/docker/config.go Outdated Show resolved Hide resolved
@@ -1122,6 +1122,25 @@ func TestDockerDriver_SecurityOpt(t *testing.T) {
require.Exactly(t, cfg.SecurityOpt, container.HostConfig.SecurityOpt)
}

func TestDockerDriver_CreateContainerConfig(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the point of this test is to specifically test the storage_opt field I would vote for appending _StorageOpt to the name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intend for this test to be generic for all options we add in future (e.g. tmpfs options) - I simply started with image and storage opt, but I can add more as well.

@notnoop notnoop changed the base branch from f-docker-plugin to master November 21, 2018 02:07
@notnoop notnoop merged commit 2aa034e into master Nov 21, 2018
@notnoop notnoop deleted the f-docker-opts-storageopt branch November 21, 2018 02:50
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2023
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.

None yet

2 participants