Ошибка установки Moby: недостаточно аргументов при вызове cli.ContainerCreate

Я пытаюсь поиграть с инструментом moby и linuxkit, но почему-то каждый раз, когда я пытаюсь установить его, возникает странная ошибка, я пробовал разные версии go и ОС, но результат тот же. если кто-нибудь пойдет эксперт здесь, пожалуйста, направьте меня.

Версия ОС убунту 22.xx

Go-версия go-версия go1.18.1 linux/amd64

Ошибка при установке моби

      root@tux:~# go install github.com/moby/tool/cmd/moby@latest
go: downloading github.com/moby/tool v0.0.0-20181029175635-98b79ea2895d
go: finding module for package github.com/sirupsen/logrus
go: downloading github.com/sirupsen/logrus v1.9.0
go: finding module for package github.com/containerd/containerd/reference
go: downloading github.com/containerd/containerd v1.6.8
go: finding module for package github.com/docker/distribution/reference
go: downloading github.com/docker/distribution v2.8.1+incompatible
go: finding module for package github.com/docker/distribution/registry/client/auth
go: finding module for package github.com/docker/distribution/registry/client/auth/challenge
go: finding module for package github.com/docker/distribution/registry/client/transport
go: finding module for package github.com/docker/docker/api/types
go: downloading github.com/docker/docker v20.10.17+incompatible
go: finding module for package github.com/docker/docker/api/types/container
go: finding module for package github.com/docker/docker/api/types/filters
go: finding module for package github.com/docker/docker/client
go: finding module for package github.com/opencontainers/go-digest
go: downloading github.com/opencontainers/go-digest v1.0.0
go: finding module for package github.com/opencontainers/runtime-spec/specs-go
go: downloading github.com/opencontainers/runtime-spec v1.0.2
go: finding module for package github.com/theupdateframework/notary/client
go: downloading github.com/theupdateframework/notary v0.7.0
go: finding module for package github.com/theupdateframework/notary/trustpinning
go: finding module for package github.com/theupdateframework/notary/tuf/data
go: finding module for package github.com/xeipuuv/gojsonschema
go: downloading github.com/xeipuuv/gojsonschema v1.2.0
go: finding module for package golang.org/x/net/context
go: downloading golang.org/x/net v0.0.0-20220811182439-13a9a731de15
go: finding module for package gopkg.in/yaml.v2
go: downloading gopkg.in/yaml.v2 v2.4.0
go: finding module for package github.com/surma/gocpio
go: downloading github.com/surma/gocpio v1.1.0
go: found github.com/sirupsen/logrus in github.com/sirupsen/logrus v1.9.0
go: found github.com/containerd/containerd/reference in github.com/containerd/containerd v1.6.8
go: found github.com/docker/distribution/reference in github.com/docker/distribution v2.8.1+incompatible
go: found github.com/docker/distribution/registry/client/auth in github.com/docker/distribution v2.8.1+incompatible
go: found github.com/docker/distribution/registry/client/auth/challenge in github.com/docker/distribution v2.8.1+incompatible
go: found github.com/docker/distribution/registry/client/transport in github.com/docker/distribution v2.8.1+incompatible
go: found github.com/docker/docker/api/types in github.com/docker/docker v20.10.17+incompatible
go: found github.com/docker/docker/api/types/container in github.com/docker/docker v20.10.17+incompatible
go: found github.com/docker/docker/api/types/filters in github.com/docker/docker v20.10.17+incompatible
go: found github.com/docker/docker/client in github.com/docker/docker v20.10.17+incompatible
go: found github.com/opencontainers/go-digest in github.com/opencontainers/go-digest v1.0.0
go: found github.com/opencontainers/runtime-spec/specs-go in github.com/opencontainers/runtime-spec v1.0.2
go: found github.com/theupdateframework/notary/client in github.com/theupdateframework/notary v0.7.0
go: found github.com/theupdateframework/notary/trustpinning in github.com/theupdateframework/notary v0.7.0
go: found github.com/theupdateframework/notary/tuf/data in github.com/theupdateframework/notary v0.7.0
go: found github.com/xeipuuv/gojsonschema in github.com/xeipuuv/gojsonschema v1.2.0
go: found golang.org/x/net/context in golang.org/x/net v0.0.0-20220811182439-13a9a731de15
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.4.0
go: found github.com/surma/gocpio in github.com/surma/gocpio v1.1.0
go: downloading github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
go: downloading golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/docker/go-units v0.4.0
go: downloading github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c
go: downloading golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
go: downloading github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
go: downloading github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f
go: downloading github.com/gorilla/mux v1.7.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/docker/go-metrics v0.0.1
go: downloading github.com/prometheus/client_golang v1.11.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.30.0
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading google.golang.org/protobuf v1.27.1
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
# github.com/moby/tool/src/moby
go/pkg/mod/github.com/moby/tool@v0.0.0-20181029175635-98b79ea2895d/src/moby/docker.go:74:79: not enough arguments in call to cli.ContainerCreate
        have ("context".Context, *container.Config, nil, nil, string)
        want ("context".Context, *container.Config, *container.HostConfig, *network.NetworkingConfig, *v1.Platform, string)

0 ответов

Другие вопросы по тегам