forked from LaconicNetwork/kompose
feat: migrate from libcompose to compose-go (#1547)
* feat: migrate from libcompose to compose-go libcompose has been deprecated since summer 2021 in favor of https://github.com/compose-spec/compose-go. Kompose should now be able to load all versions of compose. * chore: replace golint with staticcheck golint has been deprecated. Recommended replacement is staticcheck.
This commit is contained in:
1 parent
7304bb6013
commit
2ad5745d58
57 files changed
+1407
-1867
No files matched your search
@@ -82,9 +82,10 @@ func (c *Push) PushImage(image Image) error {
|
||||
// handleDockerRegistry adapt legacy docker registry address
|
||||
// After docker login to docker.io, there must be https://index.docker.io/v1/ in config.json of authentication
|
||||
// Reference: https://docs.docker.com/engine/api/v1.23/
|
||||
// > However (for legacy reasons) the “official” Docker, Inc. hosted registry
|
||||
// > must be specified with both a “https://” prefix and a “/v1/” suffix
|
||||
// > even though Docker will prefer to use the v2 registry API.
|
||||
//
|
||||
// > However (for legacy reasons) the “official” Docker, Inc. hosted registry
|
||||
// > must be specified with both a “https://” prefix and a “/v1/” suffix
|
||||
// > even though Docker will prefer to use the v2 registry API.
|
||||
func handleDockerRegistry(auth *dockerlib.AuthConfigurations) {
|
||||
const address = "docker.io"
|
||||
const legacyAddress = "https://index.docker.io/v1/"
|
||||
|
||||
Reference in new issue
Block a user