Parrot os install and docker docker-compose

First, install docker

1, added Docker pgp key

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

 

2, the source added docker

echo -e 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list

  

3, update source

apt update --fix-missing

  

4, before cleaning docker

apt remove docker docker-engine docker.io -y

  

5, mounting docker-ce

apt install docker-ce -y

 

6, the test installation was successful

docker --version

  

 

Second, the installation docker-compose

curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

  Whether the test was successful

docker-compose --version

  

Guess you like

Origin www.cnblogs.com/junsec/p/11526424.html