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

DOCKER_EXPERIMENTAL_CLI #2

Open
Spineswitch opened this issue Jun 6, 2022 · 2 comments
Open

DOCKER_EXPERIMENTAL_CLI #2

Spineswitch opened this issue Jun 6, 2022 · 2 comments

Comments

@Spineswitch
Copy link

Hello @Montana,

when I try to add this part it doesnt work? any help would be greeatful!

@Montana
Copy link
Owner

Montana commented Jun 6, 2022

One thing to remember when running: export DOCKER_CLI_EXPERIMENTAL=enabled this only makes it valid for that runtime. To make this permanent follow the directions I've provided below.

Add experimental: enabled to ~/.docker/config.json, this is the (default location) at the beginning of the file and not at the end this is an important detail that you shouldn't forget.

Then test it by running:

docker manifest inspect --insecure -v <registry_or_domain>/<image_name> | grep size | awk -F ':' '{sum+=$NF} END {print sum}' | xargs printf "%f\n" | numfmt --to=iec

This will work, hope this helps.

@Spineswitch
Copy link
Author

thanks, @Montana this seemed to do it...

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

No branches or pull requests

2 participants