Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: failed to run docker.go #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kobamkode
Copy link

Hi! I got errors when running go run docker.go in _examples/ssh-docker. I run it with go1.23.1 btw, and this PR is about how I fix it.

$ go run docker.go
# command-line-arguments
./docker.go:52:57: not enough arguments in call to docker.ContainerCreate
        have (context.Context, *container.Config, nil, nil, string)
        want (context.Context, *container.Config, *container.HostConfig, *network.NetworkingConfig, *"github.com/opencontainers/image-spec/specs-go/v1".Platform, string)
./docker.go:57:45: undefined: types.ContainerRemoveOptions
./docker.go:59:16: undefined: types.ContainerAttachOptions
./docker.go:70:45: undefined: types.ContainerRemoveOptions
./docker.go:91:49: undefined: types.ContainerStartOptions
./docker.go:99:54: undefined: types.ResizeOptions

Thanks for this super awesome project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant