@@ -67,7 +67,6 @@ type DockerCli struct {
6767 err * streams.Out
6868 client client.APIClient
6969 serverInfo ServerInfo
70- contentTrust bool
7170 contextStore store.Store
7271 currentContext string
7372 init sync.Once
@@ -86,13 +85,6 @@ type DockerCli struct {
8685 enableGlobalMeter , enableGlobalTracer bool
8786}
8887
89- // DefaultVersion returns [client.MaxAPIVersion].
90- //
91- // Deprecated: this function is no longer used and will be removed in the next release.
92- func (* DockerCli ) DefaultVersion () string {
93- return client .MaxAPIVersion
94- }
95-
9688// CurrentVersion returns the API version currently negotiated, or the default
9789// version otherwise.
9890func (cli * DockerCli ) CurrentVersion () string {
@@ -157,14 +149,6 @@ func (cli *DockerCli) ServerInfo() ServerInfo {
157149 return cli .serverInfo
158150}
159151
160- // ContentTrustEnabled returns whether content trust has been enabled by an
161- // environment variable.
162- //
163- // Deprecated: check the value of the DOCKER_CONTENT_TRUST environment variable to detect whether content-trust is enabled.
164- func (cli * DockerCli ) ContentTrustEnabled () bool {
165- return cli .contentTrust
166- }
167-
168152// BuildKitEnabled returns buildkit is enabled or not.
169153func (cli * DockerCli ) BuildKitEnabled () (bool , error ) {
170154 // use DOCKER_BUILDKIT env var value if set and not empty
@@ -601,7 +585,6 @@ type ServerInfo struct {
601585// environment.
602586func NewDockerCli (ops ... CLIOption ) (* DockerCli , error ) {
603587 defaultOps := []CLIOption {
604- withContentTrustFromEnv (),
605588 WithDefaultContextStoreConfig (),
606589 WithStandardStreams (),
607590 WithUserAgent (UserAgent ()),
0 commit comments