Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Add the docker container start flag #94

Merged
merged 3 commits into from
Oct 27, 2018
Merged

Add the docker container start flag #94

merged 3 commits into from
Oct 27, 2018

Conversation

bhuisgen
Copy link
Contributor

@bhuisgen bhuisgen commented Oct 8, 2018

This PR allows to create only a container without starting it after creation (it will start at next reboot depending of the restart policy).

resource "docker_image" "foo" {
	name = "nginx:latest"
}

resource "docker_container" "foo" {
	name = "tf-test"
	image = "${docker_image.foo.latest}"
	start = false
        must_run = false
}

@ghost ghost added the size/M label Oct 8, 2018
@mavogel mavogel added this to the v1.1.0 milestone Oct 8, 2018
@mavogel
Copy link
Contributor

mavogel commented Oct 18, 2018

hey @bhuisgen, thx for another contribution :) could you take a look at the failing tests and fix them

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
@mavogel mavogel self-assigned this Oct 27, 2018
@mavogel mavogel merged commit 63ddd27 into hashicorp:master Oct 27, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants