比特币测试网络

作者: 金沙澳门官网网址  发布:2019-09-21

官方网址配置步骤:

安装Docker环境

什么是Docker?

Docker 属于 Linux 容器的一种包装,提供轻巧易用的器皿使用接口。它是时下最盛行的 Linux 容器技术方案。
Docker 将应用程序与该程序的借助,打包在八个文件之中。运维这一个文件,就能够变动三个设想容器。程序在这么些编造容器里运维,仿佛在实际的物理机上运营一样。有了 Docker,就毫无思量情况难点。

全体来讲,Docker 的接口分外简单,客商能够一本万利地成立和利用容器,把团结的采纳放入容器。容器还足以进行版本管理、复制、分享、修改,就疑似管制日常的代码一样。
Docker 的主要用途,近期有三大类。

(1)提供三次性的景况。例如,本地质衡量试外人的软件、持续集成的时候提供单元测验和创设的境遇。

(2)提供弹性的云服务。因为 Docker 容器能够随开随关,很合乎动态扩大体积和缩容。

(3)营造微服务架构。通过多个容器,一台机械能够跑四个服务,由此在本机就能够效仿出微服务框架结构。

安装Docker
正文以ubuntu系统为例

设置Docker社区版仓库

  1. Update the apt package index:

    $ sudo apt-get update
    
  2. Install packages to allow apt to use a repository over HTTPS:

    $ sudo apt-get install 
        apt-transport-https 
        ca-certificates 
        curl 
        software-properties-common
    
  3. Add Docker’s official GPG key:

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
  4. Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below.

    $ sudo add-apt-repository 
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu 
       $(lsb_release -cs) 
       stable"
    

Install using the repository

Before you install Docker CE for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.

安装Docker社区版

  1. Update the apt package index.

    $ sudo apt-get update
    
  2. Install the latest version of Docker CE, or go to the next step to install a specific version:

    $ sudo apt-get install docker-ce
    

   3.Verify that Docker CE is installed correctly by running the hello-world image.

    $ sudo docker run hello-world

Set up the repository

  1. Update the apt package index:

    $ sudo apt-get update
    
  2. Install packages to allow apt to use a repository over HTTPS:

    $ sudo apt-get install 
        apt-transport-https 
        ca-certificates 
        curl 
        software-properties-common
    
  3. Add Docker’s official GPG key:

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    

    Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.

    $ sudo apt-key fingerprint 0EBFCD88
    
    pub   4096R/0EBFCD88 2017-02-22
          Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
    uid                  Docker Release (CE deb) <docker@docker.com>
    sub   4096R/F273FCD8 2017-02-22
    
  4. Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below.

    Note: The lsb_release -cs sub-command below returns the name of your Ubuntu distribution, such as xenial. Sometimes, in a distribution like Linux Mint, you might need to change $(lsb_release -cs) to your parent Ubuntu distribution. For example, if you are using Linux Mint Rafaela, you could use trusty.

    • x86_64 / amd64
    • armhf
    • IBM Power (ppc64le)
    • IBM Z (s390x)
    $ sudo add-apt-repository 
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu 
       $(lsb_release -cs) 
       stable"
    

    Note: Starting with Docker 17.06, stable releases are also pushed to the edge and test repositories.

    Learn about stable and edge channels.

截图如下

   金沙澳门官网网址 1

 

 

Install Docker CE

  1. Update the apt package index.

    $ sudo apt-get update
    
  2. Install the latest version of Docker CE, or go to the next step to install a specific version:

    $ sudo apt-get install docker-ce
    

    Got multiple Docker repositories?

    If you have multiple Docker repositories enabled, installing or updating without specifying a version in the apt-get install or apt-get update command always installs the highest possible version, which may not be appropriate for your stability needs.

  3. To install a specific version of Docker CE, list the available versions in the repo, then select and install:

    a. List the versions available in your repo:

    $ apt-cache madison docker-ce
    
    docker-ce | 18.03.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
    

    b. Install a specific version by its fully qualified package name, which is the package name (docker-ce) plus the version string (2nd column) up to the first hyphen, separated by a an equals sign (=), for example, docker-ce=18.03.0.ce.

    $ sudo apt-get install docker-ce=<VERSION>
    

    The Docker daemon starts automatically.

  4. Verify that Docker CE is installed correctly by running the hello-world image.

    $ sudo docker run hello-world
    

windows系统和Mac系统下载安装包点击安装就能够了。

image文件

Docker 把应用程序及其信赖,打包在 image 文件之中。独有经过那个文件,才干生成 Docker 容器。image 文件能够当做是容器的模板。Docker 依据 image 文件生成容器的实例。同二个image 文件,能够生成多个同期运维的容器实例。

image 是二进制文件。实际付出中,两个 image 文件每每因此一连另贰个 image 文件,加上有的特性化设置而生成。比方来讲,你能够在 Ubuntu 的 image 基础上,往里面出席 Apache 服务器,产生你的 image。

# 列出本机的所有 image 文件。
$ docker image ls

# 删除 image 文件
$ docker image rm [imageName]

获取iamge

docker image pull library/hello-world

查阅本机的image

docker image ls

金沙澳门官网网址 ,运行image

docker container run hello-world

容器文件

image 文件生成的器皿实例,本人也是三个文本,称为容器文件。

列出本机正在运营的器皿

docker container ls

列出本机全数容器,包涵截至运营的容器

docker container ls --all

移除容器

docker container rm [containerID]

安装比特币测验网络

下载比特币测量试验网络镜像

sudo docker pull freewill/bitcoin-testnet-box

本文由金沙澳门官网发布于金沙澳门官网网址,转载请注明出处:比特币测试网络

关键词: 金沙澳门官网

上一篇:nginx安装手册,nginx安装环境
下一篇:没有了