features icon indicating copy to clipboard operation
features copied to clipboard

docker-outside-of-docker feature have /usr/share/bash-completion/completions/docker in gzip instead plain text

Open mercuriete opened this issue 6 months ago • 2 comments

docker outside docker have a bashcompletion in gzip format instead of plain text.

that leads to bash completion not working when using in conjunction with:

mcr.microsoft.com/devcontainers/python:1-3.9-bullseye

My suggestion is decompress that file because now gives syntax error because is a binary file.

$ file /usr/share/bash-completion/completions/docker 
/usr/share/bash-completion/completions/docker: gzip compressed data, was "docker", last modified: Mon Jul 22 17:07:26 2024, from Unix, original size modulo 2^32 114580

Thanks.

PS: I can provide more information if you want

PS2:

I did a reproducer here: https://github.com/mercuriete/docker-outside-docker-reproducer

you can see the file is compressed as gzip and bash-completion is not working until you decompress that file.

mercuriete avatar Aug 01 '24 11:08 mercuriete