去除标题中的空格
This commit is contained in:
parent
d71d68ac2c
commit
431a8ed723
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 1.1 linux常用命令与技巧(1)
|
title: 1.1、linux常用命令与技巧(1)
|
||||||
date: 2018-5-3 00:52:22
|
date: 2018-5-3 00:52:22
|
||||||
tags: linux
|
tags: linux
|
||||||
categories:
|
categories:
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 2.0 shell编程(1)-初见
|
title: 2.0、shell编程(1)-初见
|
||||||
date: 2018-5-5 22:38:32
|
date: 2018-5-5 22:38:32
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 2.1 shell编程(2)-从入门到重新入门
|
title: 2.1、shell编程(2)-从入门到重新入门
|
||||||
date: 2018-5-5 00:52:22
|
date: 2018-5-5 00:52:22
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: shell编程(3)-流程控制&函数
|
title: 2.2、shell编程(3)-流程控制&函数
|
||||||
date: 2018-5-6 00:52:22
|
date: 2018-5-6 00:52:22
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: shell(4)-使用技巧
|
title: 2.3、shell(4)-使用技巧
|
||||||
date: 2018-5-6 00:52:25
|
date: 2018-5-6 00:52:25
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 3.1 Docker(1)-初见
|
title: 3.1、Docker(1)-初见
|
||||||
date: 2018-5-8 22:38:32
|
date: 2018-5-8 22:38:32
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 3.2 Docler(2)-使用技巧
|
title: 3.2、Docker(2)-使用技巧
|
||||||
date: 2018-5-9 22:38:32
|
date: 2018-5-9 22:38:32
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
@ -40,3 +40,15 @@ docker export [ContainerId] > demo.tar
|
|||||||
# 导入容器
|
# 导入容器
|
||||||
docker import demo.tar [ImageName][:Tag]
|
docker import demo.tar [ImageName][:Tag]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 容器内时区的错误
|
||||||
|
如果容器当中的程序在执行中需要获取当前时间并进行格式化
|
||||||
|
若没有特别指定 , 通常会读取操作系统的时区设定
|
||||||
|
由于容器内是一个独立的环境 , 这个设定有可能不正确
|
||||||
|
|
||||||
|
如果出现这类错误( 比如程序获取当前时间写入到数据库 , 时间提前了8小时 )
|
||||||
|
可以在构建镜像的时候执行如下命令 , 来指定容器内的时区
|
||||||
|
```bash
|
||||||
|
echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
```
|
||||||
|
也就是设定时区为东八区
|
||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: 3.3 Docker(3)-部署wordpress实践
|
title: 3.3、Docker(3)-部署wordpress实践
|
||||||
date: 2018-5-10 22:38:32
|
date: 2018-5-10 22:38:32
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user