This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ if [ $(is_new_cli "docker") -eq 1 ]; then
120
120
$sh_c " ${download_cmd} ${download_dir} /docker-compose-cli.tar.gz ${DOWNLOAD_URL} "
121
121
$sh_c " tar xzf ${download_dir} /docker-compose-cli.tar.gz -C ${download_dir} --strip-components 1"
122
122
$sudo_sh_c " install -m 775 ${download_dir} /docker /usr/local/bin/docker"
123
+ $sh_c " mkdir -p ~/.docker/cli-plugins && cp ${download_dir} /docker-compose ~/.docker/cli-plugins/docker-compose"
123
124
exit 0
124
125
fi
125
126
echo " You already have the Docker Compose CLI installed, in a different location."
@@ -185,6 +186,8 @@ $sudo_sh_c "ln -s ${existing_cli_path} ${link_path}"
185
186
186
187
# Install downloaded CLI
187
188
$sudo_sh_c " install -m 775 ${download_dir} /docker /usr/local/bin/docker"
189
+ # Install Compose CLI plugin
190
+ $sh_c " mkdir -p ~/.docker/cli-plugins && cp ${download_dir} /docker-compose ~/.docker/cli-plugins/docker-compose"
188
191
189
192
# Clear cache
190
193
cleared_cache=1
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ RUN sudo chmod +x /scripts/install_linux.sh
37
37
ARG DOWNLOAD_URL=
38
38
RUN DOWNLOAD_URL=${DOWNLOAD_URL} /scripts/install_linux.sh
39
39
RUN docker version | grep Cloud
40
+ RUN sh -c "docker info || true" | grep "compose: Docker Compose (Docker Inc.,"
40
41
41
42
FROM install AS upgrade
42
43
@@ -45,6 +46,7 @@ WORKDIR /home/newuser
45
46
46
47
RUN DOWNLOAD_URL=${DOWNLOAD_URL} /scripts/install_linux.sh
47
48
RUN docker version | grep Cloud
49
+ RUN sh -c "docker info || true" | grep "compose: Docker Compose (Docker Inc.,"
48
50
49
51
# To run this test locally, start an HTTP server that serves the dist/ folder
50
52
# then run a docker build passing the DOWNLOAD_URL as a build arg:
You can’t perform that action at this time.
0 commit comments