Article Directory
Foreword
Recently received a loophole built living environment, and the need to use docker docker-compose. Because the physical machine is Win10, the installation need to open the docker Hyper-V, but Hyper-V and Vmware conflict. So just take the kali virtual machine inside a docker. The following record about the building process.
Installation docker:
step1.
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-get install dirmngr
step2.
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
step3.
echo 'deb https://apt.dockerproject.org/repo debian-stretch main' > /etc/apt/sources.list.d/docker.list
step4.
apt-get update
ss-local -c /etc/shadowsocks.json (起飞机)
proxychains4 apt-get install docker-engine 代理下载
Installation docker-compose
ss-local -c /etc/shadowsocks.json
proxychains4 curl -L https://github.com/docker/compose/releases/download/1.25.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
Comparative docker-compose the docker and
Introduction
It is a docker for development and operation and maintenance personnel to develop, test, deploy and run applications container platform.
compose a tool is used to run applications and manage the plurality of containers.
Compared
- docker is an automated build image and boot image. docker compose automated layout containers.
- docker Dockerfile is obtained images, the start time is based on a single container
- docker-compose is based docker-compose.yml, the time to start is usually a service that is usually composed of a plurality of container, and a good port, and other configuration defined by the docker-compose.
- Both need to be installed, but to use docker-compose, you must be installed docker
Reference blog:
Linux under docker install
Linux under docker-compose install
docker docker-compose with the introduction and use of contrast