Make a geth image

Source: Internet
Author: User
Tags docker run

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:/# 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.