docs/develop
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
..
develop-images Clarify scratch image example (#5947) 2018-02-07 15:48:05 -08:00
sdk Fix run-container example (#5937) 2018-02-07 16:14:08 -08:00
dev-best-practices.md Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788) 2018-01-25 17:37:23 -08:00
index.md Add develop section, reorganize TOC (WIP) (#4312) 2017-09-26 20:16:59 -07:00