Add code to install docker client into docker image
This commit is contained in:
parent
88b4050c79
commit
a00364bf01
@ -1208,6 +1208,21 @@ RUN if [ ${INSTALL_SSHPASS} = true ]; then \
|
||||
apt-get -y install sshpass \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# Docker Client:
|
||||
###########################################################################
|
||||
|
||||
USER root
|
||||
|
||||
ARG INSTALL_DOCKER_CLIENT=false
|
||||
|
||||
RUN if [ ${INSTALL_DOCKER_CLIENT} = true ]; then \
|
||||
curl -sS https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz -o /tmp/docker.tar.gz && \
|
||||
tar -xzf /tmp/docker.tar.gz -C /tmp/ && \
|
||||
cp /tmp/docker/docker* /usr/local/bin && \
|
||||
chmod +x /usr/local/bin/docker* \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# YAML: extension for PHP-CLI
|
||||
###########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user