mirror of https://github.com/docker/docs.git
Merge pull request #16619 from Briscoooe/patch-1
Update Docker Engine Python SDK example to use Python 3 syntax
This commit is contained in:
commit
5cc09b6b5f
|
@ -144,7 +144,7 @@ func main() {
|
||||||
```python
|
```python
|
||||||
import docker
|
import docker
|
||||||
client = docker.from_env()
|
client = docker.from_env()
|
||||||
print client.containers.run("alpine", ["echo", "hello", "world"])
|
print(client.containers.run("alpine", ["echo", "hello", "world"]))
|
||||||
```
|
```
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue