Description of the issue
I'm confused by the instructions for installing compose V2 on Linux and the convenience scripts don't result in a working docker compose.
This is kinda complicated just to get a working docker compose, would be nice if it all worked with convenience scripts.
Really my goal is to add the alias docker-compose (from https://github.com/docker/compose-switch) but I think I need docker compose working first?
Context information (for bug reports)
Output of docker(-)compose version
none yet trying to install
Output of docker version
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Client: Docker Engine - Community
Cloud integration: 1.0.17
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:54:27 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Steps to reproduce the issue
I'm assuming I should be able to install the docker / docker compose command line client inside a Linux container (I do that with docker and V1 docker-compose). Of course I'm only trying to run the docker client, the docker server is not running in the container.
- Create a Linux container on which you want the docker cli with the V2 compose subcommand. Btw it seems important that these convenience scripts work on centos/compatible too.
% docker run -ti ubuntu:20.04 bash
root@d8f753341dec:/# apt-get update && apt-get install -y curl
root@d8f753341dec:/# docker version
Client: Docker Engine - Community
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:54:27 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- Install the V2 docker compose cli:
root@d8f753341dec:/# curl -L https://raw.githubusercontent.com/docker/compose-cli/main/scripts/install/install_linux.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
Running checks... 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5982 100 5982 0 0 31650 0 --:--:-- --:--:-- --:--:-- 31819
Checks passed!
Downloading CLI...
Downloaded CLI!
Installing CLI...
Done!
- I'd expect that to make
docker compose work, but it does not.
root@d8f753341dec:/# docker compose version
docker: 'compose' is not a docker command.
See 'docker --help'
Observed result
docker: 'compose' is not a docker command.
Expected result
% docker compose version
Docker Compose version v2.0.0-rc.3
Additional information
Docker for Mac 4.0.2
Description of the issue
I'm confused by the instructions for installing compose V2 on Linux and the convenience scripts don't result in a working
docker compose.This is kinda complicated just to get a working
docker compose, would be nice if it all worked with convenience scripts.Really my goal is to add the alias
docker-compose(from https://github.com/docker/compose-switch) but I think I needdocker composeworking first?Context information (for bug reports)
docker compose ...docker-compose ...Output of
docker(-)compose versionOutput of
docker versionSteps to reproduce the issue
I'm assuming I should be able to install the
docker/docker composecommand line client inside a Linux container (I do that with docker and V1 docker-compose). Of course I'm only trying to run the docker client, the docker server is not running in the container.docker composework, but it does not.Observed result
docker: 'compose' is not a docker command.Expected result
Additional information
Docker for Mac 4.0.2