Commit Graph

36 Commits

Author SHA1 Message Date
AlberTo de Prezzo 7ca2ef679e Update index.md (#9078)
"io" needs to be imported, in order to avoid " undefined: io" error. 
(go version: go1.12.5 linux/amd64)

P.S: import statements are reordered/formatted (gofmt).

Cheers
2019-08-19 15:23:58 +01:00
Victor Bordo e72bfc468d Add missing dependency to Run a container example (#9153)
The `io` library needs to be imported for the example to compile successfully.
2019-08-16 11:47:56 +01:00
Alex Goodman 07360ef578 remove depricated methods from go sdk examples (#8689)
* remove depricated methods from go sdk examples

* use negotiate client option; handle import & tty review comment
2019-07-23 08:56:00 -07:00
Dawn W Docker bf298eba11 branding changes
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-11 15:05:20 -07:00
Dawn W Docker 7b45982a0a branding changes
Signed-off-by: Dawn W Docker <dawn.wood@users.noreply.github.com>
2019-06-11 14:48:19 -07:00
paigehargrave 0dab4ade68
Merge branch 'master' into name-change-for-Docker-Desktop 2019-01-14 11:14:48 -05:00
paigehargrave cfe3795956
Update index.md 2019-01-11 15:07:55 -05:00
L-Hudson 20a099200d
Merge pull request #6761 from bruceadowns/patch-2
Update index.md
2019-01-03 08:41:19 -05:00
Maria Bermudez f36c2bad4f
Merge pull request #7710 from alejandrox1/master
Update docker sdk go example
2019-01-02 12:43:04 -08:00
Jorge Alarcon Ochoa 27ad1c0928 Update docker sdk go example
Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com>
2018-12-27 15:59:13 -06:00
L-Hudson 7a39bec77a
Merge pull request #6155 from RobertKielty/patch-1
Call out go version required to get client
2018-12-21 08:44:31 -05:00
Maria Bermudez aaca9b83b5 Revert "Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2""
This reverts commit 4c95d161ca.
2018-08-29 19:01:03 -07:00
Maria Bermudez 4c95d161ca Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2"
This reverts commit af5f2fcc38, reversing
changes made to 338b690d26.
2018-08-29 18:37:44 -07:00
Maria Bermudez 840c167055 Revert "Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2""
This reverts commit 14080c18bd.
2018-08-29 18:36:03 -07:00
Maria Bermudez 14080c18bd Revert "Merge branch 'master' of github.com:docker/docs-private into test-branch-2"
This reverts commit af5f2fcc38, reversing
changes made to 338b690d26.
2018-08-29 14:47:31 -07:00
Bruce A Downs 66e0628992 Update index.md 2018-06-15 16:30:24 -07:00
Mihai A e33e7f0499
Added docker-java-api 2018-05-29 23:34:14 +03:00
Bruce A Downs d141ae11f2
Update index.md 2018-05-25 00:49:40 -07:00
Robert Kielty 3a48dc03a7
Update index.md
Bumped to 1.9.4
2018-03-06 12:57:04 +00:00
Robert Kielty cad9753658
Call out go version required to get client
If you have an old version of go installed on your machine the instruction to 
go get ithub.com/docker/docker/client fails. 

ref https://forums.docker.com/t/possible-doc-bug-for-go-client/47374?u=rkielty

I think that go 1.8 is the required minimum based on the following :
* https://forums.docker.com/t/possible-doc-bug-for-go-client/47374/2?u=rkielty Thanks David Maze!
* I have tested this with go 1.6.2 where it failed as described above
* I have test this with go 1.10 where it succeed

I cannot find a statement where the required minimum go version to get the client is called out
I checked the above doc along with 
* https://godoc.org/github.com/docker/docker/client
* https://github.com/moby/moby/blob/master/client/README.md
2018-03-06 09:05:48 +00:00
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
Misty Stanley-Jones a17a47dd77
Favor docker <object> <verb> format of commands (#5914)
Remove instances of:
- docker rmi
- docker images
- docker stop
- docker rm
- docker create
- docker exec
- docker attach
2018-02-05 09:33:47 -08:00
Misty Stanley-Jones 793d43d79b
Add info about CE and EE max API mismatch (#5910) 2018-02-02 09:30:16 -08:00
Misty Stanley-Jones a55ddf60a9
Move /engine/installation to /install (#5651)
* Move /engine/installation to /install

* Add Docker for IBM Cloud to the matrix
2018-01-26 10:29:14 -08:00
Misty Stanley-Jones a4f5e30249
Various copyedits to reduce future tense, wordiness, and use of 'please' (#5788)
* Reword lots of instances of 'will'

* Reword lots of instances of won't

* Reword lots of instances of we'll

* Eradicate you'll

* Eradicate 'be able to' type of phrases

* Eradicate 'unable to' type of phrases

* Eradicate 'has / have to' type of phrases

* Eradicate 'note that' type of phrases

* Eradicate 'in order to' type of phrases

* Redirect to official Chef and Puppet docs

* Eradicate gratuitous 'please'

* Reduce use of e.g.

* Reduce use of i.e.

* Reduce use of N.B.

* Get rid of 'sexagesimal' and correct some errors
2018-01-25 17:37:23 -08:00
Alex Rhea a61e1a6c20 adding harbor master (#5770) 2018-01-19 11:46:17 -08:00
Valerio Mazzeo 350c44e4c6 Added docker-client-swift (#5287) 2017-11-14 14:03:20 -08:00
MwumLi 5d6a2909fd fix "List all images" active first 2017-11-10 10:00:04 -08:00
Jordan Wright 1c0cc75eaf Fixes incorrect link to SDK Installation (#5254)
This fixes a broken link to the SDK installers. Currently, it points /develop/api, which doesn't exist.
2017-11-09 10:11:00 -08:00
Misty Stanley-Jones a30b95e49d Add API 1.33, API matrix 2017-10-17 21:34:07 -07:00
Misty Stanley-Jones 6aae2e4e84 Add pointer to latest API ref (#4897) 2017-10-16 15:04:24 -07:00
John Mulhausen 8b704f7b87 Revert "Add pointer to latest API ref" (#4896)
* Revert "Clarify patch and update cycles (#4894)"

This reverts commit 6b1577aa0d.

* Revert "Add pointer to latest API ref (#4892)"

This reverts commit a6b436d133.
2017-10-11 16:33:21 -07:00
Misty Stanley-Jones a6b436d133 Add pointer to latest API ref (#4892) 2017-10-11 15:52:15 -07:00
Misty Stanley-Jones 9df5cae37a Fix 404 (#4802) 2017-10-04 16:53:49 -07:00
Misty Stanley-Jones ae8d81a90e Fix problems in the SDK examples (#4733) 2017-09-27 16:01:02 -07:00
Misty Stanley-Jones 99a697824b Add develop section, reorganize TOC (WIP) (#4312) 2017-09-26 20:16:59 -07:00