slimtoolkit / slim

Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
19.34k stars 726 forks source link

update docker/docker reference and fix ID MAPS #502

Closed ghost closed 1 year ago

ghost commented 1 year ago

Fixes-###

What

Update github.com/docker/docker from v20.10.12 to v23.0.2.

Why

Getting compile errors against this code when using it as a library. My app uses a more recent version of docker and I get the following compile errors:

# github.com/docker-slim/docker-slim/pkg/docker/dockerutil
/go/pkg/mod/github.com/docker-slim/docker-slim@v0.0.0-20221025045308-f502574b8d88/pkg/docker/dockerutil/dockerutil.go:286:4: unknown field 'UIDMaps' in struct literal of type archive.TarOptions
/go/pkg/mod/github.com/docker-slim/docker-slim@v0.0.0-20221025045308-f502574b8d88/pkg/docker/dockerutil/dockerutil.go:287:4: unknown field 'GIDMaps' in struct literal of type archive.TarOptions
/go/pkg/mod/github.com/docker-slim/docker-slim@v0.0.0-20221025045308-f502574b8d88/pkg/docker/dockerutil/dockerutil.go:594:4: unknown field 'UIDMaps' in struct literal of type archive.TarOptions
/go/pkg/mod/github.com/docker-slim/docker-slim@v0.0.0-20221025045308-f502574b8d88/pkg/docker/dockerutil/dockerutil.go:595:4: unknown field 'GIDMaps' in struct literal of type archive.TarOptions

How Tested

Build against update.

ghost commented 1 year ago

Closing this MR - github forked me with only master