-
Notifications
You must be signed in to change notification settings - Fork 15
Docker Network
KevinOneLedger edited this page Nov 20, 2020
·
10 revisions
- Get convenience script from the official docker site and run it with sudo priveleges.
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh- Add your user to the 'docker' group in order to run as non-root user.
$ sudo usermod -aG docker your-user- Log out and re-log in for the step above to take effect.
- Note: If you are having trouble with the above steps, please visit https://docs.docker.com/engine/install/ubuntu/ for alternative methods
- Upgrade apt sources.
$ sudo apt-get upgrade- Download Docker Compose v1.24.0 (You can install a newer version but the behaviour isn't fully tested)
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose- Change mode of the binary to executable.
$ sudo chmod +x /usr/local/bin/docker-compose- Note: If you are having trouble installing docker-compose please refer to the official documentation: https://docs.docker.com/compose/install/
- Install pip for python 2.7XX
$ sudo apt install python-pip- Install python yaml package
$ pip install pyyaml- Install git if you haven't already.
$ sudo apt install git- Create a new directory to store your source code.
$ mkdir ~/go- Clone Protocol repository.
$ git clone https://github.com/Oneledger/protocol.git- Create directories to map as your shared volumes.
$ mkdir -p -- ~/oldata/docker ~/oldata/docker/bin- Navigate to default folder in the protocol source code.
cd ~/go/protocol/DOCKER-network/default- Build docker image.
docker build -t olprotocol .© OneLedger 2018-2020 Contact Information