소스 검색

Merge pull request #41523 from pfandzelter/patch-2

Update documentation to reflect deprecation of "NewEnvClient"
Akihiro Suda 4 년 전
부모
커밋
1b34a49fef
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      client/client.go

+ 2 - 2
client/client.go

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