Skip to content

Commit

Permalink
docs(readme): update example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mavogel committed Mar 25, 2021
1 parent c5b19d1 commit 6b0f977
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ terraform {
# since new versions are released frequently
docker = {
source = "kreuzwerker/docker"
version = "2.8.0"
version = "2.11.0"
}
}
}
Expand All @@ -36,15 +36,15 @@ provider "docker" {
# Create a docker image resource
# -> docker pull nginx:latest
resource "docker_image" "foo" {
name = "c"
resource "docker_image" "nginx" {
name = "nginx:latest"
keep_locally = true
}
# Create a docker container resource
# -> docker run --name foo -d nginx:latest
resource "docker_container" "foo" {
name = "foo"
image = docker_image.foo.latest
# -> same as 'docker run --name nginx -d nginx:latest'
resource "docker_container" "nginx" {
name = "nginx"
image = docker_image.nginx.latest
}
```

0 comments on commit 6b0f977

Please sign in to comment.