docs icon indicating copy to clipboard operation
docs copied to clipboard

404 at command-line bash completion script

Open thalesbruno opened this issue 2 years ago • 8 comments

Also, will this work with cli-plugins install?

nunesvictor avatar May 02 '22 16:05 nunesvictor

I'm having this issue as well, the provided Curl command results in a 404 error message being dumped into the target file, which makes the shell login mildly unhappy.

davemsh avatar May 24 '22 02:05 davemsh

same issue. For workaround, i commited the script from my old Ubuntu 20 LTS to my public repo. It is the version from march 2022. Feel free to use until this issue is fixed:

sudo curl \
    -L https://raw.githubusercontent.com/andreasvh-conceto/docker-completion/main/docker-compose \
    -o /etc/bash_completion.d/docker-compose

andreasvh-conceto avatar Jun 05 '22 15:06 andreasvh-conceto

same issue. For workaround, i commited the script from my old Ubuntu 20 LTS to my public repo. It is the version from march 2022. Feel free to use until this issue is fixed:

sudo curl \
    -L https://raw.githubusercontent.com/andreasvh-conceto/docker-completion/main/docker-compose \
    -o /etc/bash_completion.d/docker-compose

Thanks. You're a life saver!

timebotdon avatar Jun 16 '22 16:06 timebotdon

This is still happening. Now the URL in the cURL script at https://docs.docker.com/compose/completion/#bash is pointing to v2.6.1, but it remains a 404.

Edit: Starting in the >2.0.0-tagged Docker Compose repo, this entire path has disappeared. Compare:

https://github.com/docker/compose/tree/1.29.2 https://github.com/docker/compose/tree/v2.0.0

in 1.29.2, the /contrib/completion/bash/docker-compose file exists, in >2.0.0, the contrib directory is gone. The most-recent version of this file I've been able to locate is thus located here: https://raw.githubusercontent.com/docker/compose/1.29.2/contrib/completion/bash/docker-compose

davemsh avatar Jun 27 '22 04:06 davemsh

And now its at v2.7.0 and still a 404

Is there another way to get to this file? How are docs being updated with new version without fixing the 404 issue?

isimmons avatar Jul 29 '22 04:07 isimmons

Command-line completion

curl \
    -L https://raw.githubusercontent.com/docker/compose/v2.7.0/contrib/completion/bash/docker-compose \
    -o /etc/bash_completion.d/docker-compose

404: Not Found

The previous version is gone :|

cat /etc/bash_completion.d/docker-compose ; echo
404: Not Found

shakibamoshiri avatar Aug 02 '22 13:08 shakibamoshiri

Just hit the same issue. Im not sure whether downloading from non-official source is safe.

hajdukd avatar Aug 09 '22 11:08 hajdukd

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott avatar Jan 03 '23 01:01 docker-robott

/remove-lifecycle stale

The documentation appears to have been updated to not mention Bash completion anymore at all. Can anyone else verify?

davemsh avatar Jan 03 '23 15:01 davemsh

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott avatar Apr 03 '23 01:04 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar May 17 '23 03:05 docker-robott