Prerequisites
hm90121 edited this page Jul 14, 2021
·
1 revision
- Update the package index and install packages.
sudo apt-get update
- Install the necessary Docker dependencies
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
- Add Docker's official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- Set up a stable repository using the following command.
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Install the latest version of Docker Engine and containerd,
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- Verify whether the Docker is successfully installed using.
docker --version
Sample Response:
Docker version 20.10.7, build f0df350
- Run this command to download the current stable release of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
- Verify whether the docker-compose is successfully installed using.
docker-compose --version
Response:
docker-compose version 1.29.2, build 1110ad01
- Home
- Introduction
- Architecture
- 0Chain Smart Contracts
- Help