The docker
image jenkinsci/blueocean seems official since the official document is mentioning the image.
I want to run docker-compose
command in the container but this image only comes with docker
but not docker-compose
.
Thus, I tried to install docker-compose
as the usual way inside the container.
$ curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
It looked installed successfully, however, when I run docker-compose --version
, it returns bash: ./docker-compose: No such file or directory
, even though I can see the docker-compose
executable at $(which docker-compose)
.
(This error is not relative with $PATH
, I tried to run directly at the directory where docker-compose
is located)
How could I install docker-compose
in the image, that is, how can I build new image containing docker-compose
based on jenkinsci/blueocean
?
docker-compose
as part of a job? – RuelJenkins
overUbuntu
image includingdocker-compose
. – Cornie