
docker-工具
文章平均质量分 51
不折腾就闹心
这个作者很懒,什么都没留下…
展开
-
启动docker,进入docker
[root@i-k11xnd1o ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEdocker.io/hello-world latest 1原创 2017-07-20 11:49:16 · 811 阅读 · 0 评论 -
测试中
{ “config”: { “chainId”: 12345, “homesteadBlock”: 0, “eip155Block”: 0, “eip158Block”: 0 }, “coinbase” : “0x0000000000000000000000000000000000000000”,原创 2017-08-16 16:04:45 · 629 阅读 · 0 评论 -
用镜像搭建一个新以太坊节点并部署合约(演示)
docker run -it –name node6 daocloud.io/ubuntu/node cd privategeth geth –datadir ./data/00 init genesis.json geth –identity “haha” –datadir ./data/00 –networkid 12345 –rpcapi “db,eth,net,web3” –p原创 2017-08-09 13:47:40 · 3859 阅读 · 0 评论 -
以太坊智能合约部署与交互
启动容器来执行geth命令root@ubu-blockchain2:~# docker run -i blockchain101/ethereum-geth:1.6.5 geth attach http://45.32.252.88:8201Welcome to the Geth JavaScript console!instance: Geth/01/v1.6.5-stable/linux-am原创 2017-08-01 18:07:44 · 33708 阅读 · 5 评论 -
制作一个节点的镜像
root@QKTEST21191:/home/ucsmy# docker run -it –name ubueth -p 8020:8020 ebcd9d4fca80 然后需要更新一下包apt-get update准备工作apt-get install python-software-properties apt-get install software-properties-common a原创 2017-08-03 17:18:49 · 976 阅读 · 1 评论 -
测试两个容器是否连通
进入容器查看iproot@f2b5cdfdc5ed:/private-geth# ip addr1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 i原创 2017-07-26 17:24:11 · 3371 阅读 · 0 评论 -
docker下搭建三个节点
1 进入一个ubuntu容器后基础的准备apt-get install python-software-properties apt-get install software-properties-common apt-get install vim 2安装solc add-apt-repository ppa:ethereum/ethereum apt-get update apt-g原创 2017-07-26 14:14:05 · 2973 阅读 · 0 评论 -
docker制作镜像
本来是跑了三个容器,以为是让这三个容器制作成一个镜像,但是只能是一个容器制作成一个镜像,所以之前的思路是错的。 现在就是把一个容器制作成一个镜像, 先跑一个容器docker run --name test1 -it daocloud.io/ubuntu /bin/bash然后在容器里面更新一下root@56af07d454f5:/# apt-get update -y 退出容器,c原创 2017-07-27 11:03:10 · 735 阅读 · 0 评论 -
测试中
root@ubu-blockchain2:~# lltotal 44drwx------ 5 root root 4096 Aug 4 09:48 ./drwxr-xr-x 23 root root 4096 Jul 26 11:26 ../-rw-r--r-- 1 root root 3106 Oct 23 2015 .bashrcdrwx------ 2 root root原创 2017-08-04 18:17:35 · 466 阅读 · 0 评论 -
用自己创建的镜像run一个节点,连接有问题
用容器ubuntublock制作一个镜像,其中daocloud.io/ubuntu是制作容器的时候用到的镜像 docker commit ubuntublock daocloud.io/ubuntu/ubuntublock然后用我们自己做的镜像run两个容器,分别是node1 ,node2docker run -it --name node1 daocloud.io/ubuntu/ubuntub原创 2017-07-27 17:49:35 · 531 阅读 · 0 评论 -
docker-compose一些小理解
Docker Compose的前身是Fig,它是一个定义及运行多个Docker容器的工具。使用Docker Compose你只需要在一个配置文件中定义多个Docker容器,然后使用一条命令将多个容器启动,Docker Compose会通过解析容器件的依赖关系(link, 网络容器 –net-from或数据容器 –volume-from)按先后顺序启动所定义的容器。 Docker Compose的工原创 2017-08-16 10:34:28 · 1988 阅读 · 0 评论 -
制作镜像并上传到阿里云
run一个ubuntu容器,然后自动进入容器ucsmy@QKTEST21191:~$ docker run -it --name node daocloud.io/ubunturoot@3ac09729dadb:/# 安装gethsudo apt-get install software-properties-commonsudo add-apt-repository -y ppa:ethere原创 2017-08-07 18:05:05 · 2535 阅读 · 0 评论 -
测试docker建立以太坊集群
1 安装docker[root@i-k11xnd1o etc]# yum install docker查看docker版本,报错[root@i-k11xnd1o etc]# docker version Client: Version: 1.12.6 API version: 1.24 Package version: docker-1.12.6-32.git88a原创 2017-07-19 17:58:45 · 1702 阅读 · 0 评论 -
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
启动docker就可以了[root@i-t5u53x8o /]# service docker startRedirecting to /bin/systemctl start docker.service原创 2017-07-21 15:16:47 · 607 阅读 · 0 评论 -
docker&镜像
想自己做个以太坊私链的镜像,查看了相关的资料,最后还是觉的有必要先了解一下docker的基本原理,也许后续的操作会更顺利https://capgemini.github.io/blockchain/ethereum-docker-compose/Docker 运行容器前需要本地存在对应的镜像,如果镜像不存在本地,Docker 会从镜像仓库下载(默认是 Docker Hub 公共注册服务器中的仓原创 2017-07-18 10:53:31 · 661 阅读 · 0 评论 -
Cannot connect to the Docker daemon.
我的版本是centos7.3.CentOS7 系统 CentOS-Extras 库中已带 Docker,可以直接安装[root@i-7bfw3n0q ~]# yum install docker查看docker版本[root@i-7bfw3n0q ~]# docker version Client: Version: 1.12.6 API vers原创 2017-07-18 14:54:18 · 1364 阅读 · 0 评论 -
docker命令总结
1 查看所有镜像的信息[root@i-7bfw3n0q ~]# docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESa344768b9b11 he转载 2017-07-18 15:13:47 · 1727 阅读 · 0 评论 -
以太坊如何安装安装 Docker 安装 Compose
1. 系统要求 •安装 Docker •安装 Compose •环境验证: 用户可以用如下命令验证环境,如果返回信息类似,则说明系统满足要求 # docker-compose psName Command State Ports------------------------------2. 基本用法(以geth为例)部署星火节点,只需要编写一个配置文件,然后使用compose转载 2017-07-18 18:28:22 · 683 阅读 · 0 评论 -
Docker容器化快速构建多集群以太坊网络并部署智能合约
本次打算把私链构建的脚本容器化,达到基于配置文件快速进行区块链网络构建的能力。以太坊智能合约开发者可以基于以太坊的测试网络进行合约的测试,但是如果想进行持续集成和持续测试(CI&CT),建立一个本地的可控区块链网络非常有必要,另外考虑到未来容器化集群分布式部署的需要,本人特意制作了相关的docker image,这样初学者或者想要构建自己网络的用户就可以在不需要太多了解命令的情况下,运行起自己转载 2017-07-18 18:49:48 · 3635 阅读 · 0 评论 -
gethup.sh
docker exec -it geth-cluster1 /bin/bash geth –datadir data0 –networkid 779977 console root@85547cf26bca:/ethutil# cat gethup.sh #!/bin/bash# Usage:# bash /path/to/eth-utils/gethup.sh <datadir> <ins原创 2017-08-07 17:03:53 · 1401 阅读 · 0 评论 -
制作geth 的镜像
1 写Dockerfilemkdir blccd blcvim DockerfileFROM ubuntu:16.04RUN apt-get update \ && apt-get install software-properties-common -y \ && add-apt-repository -y ppa:ethereum/ethereum \ &&原创 2017-12-14 17:27:59 · 729 阅读 · 0 评论