|
@ -96,7 +96,7 @@ $ service docker status |
|
|
#### 1.登录`ucloud docker hub` |
|
|
#### 1.登录`ucloud docker hub` |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
$ docker login uhub-edu.service.ucloud.cn -u username/email |
|
|
|
|
|
|
|
|
$ docker login uhub-edu.service.ucloud.cn -u username |
|
|
|
|
|
|
|
|
Password: |
|
|
Password: |
|
|
WARNING! Your password will be stored unencrypted in /root/.docker/config.json. |
|
|
WARNING! Your password will be stored unencrypted in /root/.docker/config.json. |
|
@ -325,7 +325,7 @@ $ docker port static_site |
|
|
|
|
|
|
|
|
#### 具体步骤如下: |
|
|
#### 具体步骤如下: |
|
|
|
|
|
|
|
|
#### 1.若提示continer正在运行中,可以使用`docker stop static-site && docker rm static-site`删除正在使用的容器并重新创建. |
|
|
|
|
|
|
|
|
#### 1.若提示continer正在运行中,可以使用`docker stop static_site && docker rm static_site`删除正在使用的容器并重新创建. |
|
|
|
|
|
|
|
|
#### 2. 创建`/var/html`文件夹 |
|
|
#### 2. 创建`/var/html`文件夹 |
|
|
|
|
|
|
|
@ -333,7 +333,7 @@ $ docker port static_site |
|
|
mkdir /var/html |
|
|
mkdir /var/html |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
#### 3.下载[index.html文件](file/assignment2/index.html),使用`scp`命令传输到`host`的`/var/html`文件夹中,并修改一下部分为自己的信息 |
|
|
|
|
|
|
|
|
#### 3.在`/var/html`中新建`index.html`文件,复制[index.html文件](file/assignment2/index.html)中的内容到文件中,并修改一下部分为自己的信息 |
|
|
|
|
|
|
|
|
```html |
|
|
```html |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|