Skip to content

Conversation

@jieyu
Copy link
Contributor

@jieyu jieyu commented Jul 13, 2018

zkutils: auto remove the ZK docker container

Checklist

  • [] ~80% unit test coverage?
  • [] Updated README.md?
  • [] Completed sections of this PR template?
  • [] Edited all sections [IN BRACKETS]

Overview of Change

This is for the case where the test process is killed, leaving the ZK
container running. It'll be great if docker stop can also remove the
container as well.

Changelog [optional]

  • [] [optional list]

Affected Usage

ZK container will be auto removed if stopped.

This is for the case where the test process is killed, leaving the ZK
container running. It'll be great if `docker stop` can also remove the
container as well.
@jieyu
Copy link
Contributor Author

jieyu commented Jul 13, 2018

The windows CI failure looks unrelated to this change.

// mapping for the container.
hostConfig := &container.HostConfig{}
hostConfig := &container.HostConfig{
AutoRemove: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of hard-coding this, maybe make it a field in ZKConfig and then you can configure it using a functional option. I'd like to avoid hard-coding new things here.

@janisz
Copy link

janisz commented Jun 2, 2020

@jieyu What's the status of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants