|
@ -333,7 +333,7 @@ $ docker port static_site |
|
|
mkdir /var/html |
|
|
mkdir /var/html |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
#### 3.在`/var/html`中新建`index.html`文件,复制[index.html文件](file/assignment2/index.html)中的内容到文件中,并修改一下部分为自己的信息 |
|
|
|
|
|
|
|
|
#### 3.在`/var/html`中新建`index.html`文件,复制[index.html文件](file/assignment2/index.html)中的内容到文件中,并修改以下部分为自己的信息 |
|
|
|
|
|
|
|
|
```html |
|
|
```html |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
@ -341,7 +341,7 @@ mkdir /var/html |
|
|
<div class="one-half column" style="margin-top: 25%"> |
|
|
<div class="one-half column" style="margin-top: 25%"> |
|
|
<h4>Hello Docker!</h4> |
|
|
<h4>Hello Docker!</h4> |
|
|
<p>This is being served from a <strong>docker</strong> container running Nginx.</p> |
|
|
<p>This is being served from a <strong>docker</strong> container running Nginx.</p> |
|
|
<p>my id is xxxx,my name is xxx</p> |
|
|
|
|
|
|
|
|
<p>my id is xxxx,my name is xxx</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|