Update documentation to reflect deprecation of "NewEnvClient"
| ... | ... |
@@ -7,8 +7,8 @@ https://docs.docker.com/engine/reference/api/ |
| 7 | 7 |
Usage |
| 8 | 8 |
|
| 9 | 9 |
You use the library by creating a client object and calling methods on it. The |
| 10 |
-client can be created either from environment variables with NewEnvClient, or |
|
| 11 |
-configured manually with NewClient. |
|
| 10 |
+client can be created either from environment variables with NewClientWithOpts(client.FromEnv), |
|
| 11 |
+or configured manually with NewClient(). |
|
| 12 | 12 |
|
| 13 | 13 |
For example, to list running containers (the equivalent of "docker ps"): |
| 14 | 14 |
|