docs/develop/sdk
Sasha Goldshtein 2c35211913 Fix run-container example (#5937)
The very first example (https://docs.docker.com/develop/sdk/examples/#run-a-container) has two annoying issues fixed by this patch:

1. The `ImagePull` call does not complete before the subsequent `ContainerCreate` call is issued. As a result, there is a race between pulling the image and starting the container from the image. For locally cached images, `ContainerCreate` will still work, but for images that have to be pulled, it will likely fail. This was [reported on StackOverflow](https://stackoverflow.com/questions/42816132/docker-run-using-golang-api-docker-docs) but not fixed yet.

2. The `ContainerLogs` call doesn't return a string, but rather an intermixed byte buffer with the stdout and stderr from the container. This can be highly confusing. Added `Tty: true` to the `ContainerCreate` call such that the `ContainerLogs` output only includes stdout.
2018-02-07 16:14:08 -08:00
..
examples.md Fix run-container example (#5937) 2018-02-07 16:14:08 -08:00
index.md Add info about CE and EE max API mismatch (#5910) 2018-02-02 09:30:16 -08:00