Docker - create the first instance of a docker

1 Overview

  1. After installing ready to use

2. Environment

  1. the
    1. CentOS 7
  2. docker
    1. docker - this
      1. 19.03

3. Step

  1. Start docker

    > systemctl start docker
  2. Create a container

    # 创建成功后自动进入容器
    # -it 表示开启 stdin, 以及开启伪终端
    > docker run -it ubuntu /bin/bash
  3. Excuting an order

    docker> apt-get install iproute2
    docker> ip a

3. Other

  1. ref
    1. Installation ip command

      https://www.cnblogs.com/S--S/p/7209682.html

Guess you like

Origin www.cnblogs.com/xy14/p/10926339.html