1 Write Dockerfile
mkdir BLC
cd BLC
vim Dockerfile from
ubuntu:16.04
RUN apt-get update \
&& apt-get Install software-properties-common-y \
&& add-apt-repository-y ppa:ethereum/ethereum \
&& Apt-get update \
&& apt-get install ethereum-y
2 Building the image
sudo docker build-t node:node1.
flq1@ubuntu:~/blc$ sudo docker build-t node:node1.
Sending build context to Docker daemon 2.048 KB
step: From ubuntu:16.04
---> 20c44cd7596f
Step 2/2: R UN apt-get Update && apt-get install software-properties-common-y && add-apt-repository-y PPA : Ethereum/ethereum && apt-get update && apt-get install ethereum-y
---> Using cache
---> C4feb44697ed
Successfully built c4feb44697ed
flq1@ubuntu:~/blc$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
node node1 c4feb44697ed 4 hours ago 376 MB
3 Creating a container with mirrors
flq1@ubuntu:~/blc$ sudo docker run-it node:node1/bin/bash
root@6b684add4ad8:/#