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

Fixed bug where docker_container resource was not working properly with swarm #1990

Closed
wants to merge 1 commit into from
Closed

Fixed bug where docker_container resource was not working properly with swarm #1990

wants to merge 1 commit into from

Conversation

jwthomp
Copy link

@jwthomp jwthomp commented May 15, 2015

The docker_container resource was failing to work with Swarm as it was using the container name to test if it had started on a Swarm cluster. As Swarm prepends the hostname to a container name, this was failing. I have modified fetchDockerContainer to use the container's sha rather than it's name to test that it is still running.

@mitchellh
Copy link
Contributor

Hey @jefferai do you mind helping with a review on this?

@jefferai
Copy link
Member

LGTM. Older versions (possibly unreleased) had various functions calling fetchDockerContainer so the ID could not be relied on to be available, but at this point it's only called from within Read so I believe it should be available in all cases.

@josephholsten
Copy link
Contributor

@mitchellh is this easy enough to manually merge? or does it need someone to rebase the patch for you all?

@josephholsten
Copy link
Contributor

rebased this thing at #3364

@phinze, @jefferai: should be ready to you to look at

@phinze
Copy link
Contributor

phinze commented Oct 5, 2015

Closing in favor of #3364

@phinze phinze closed this Oct 5, 2015
@jen20
Copy link
Contributor

jen20 commented Dec 2, 2015

This actually landed in #4148!

@ghost
Copy link

ghost commented Apr 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants