linux 下:
docker-compose.yml配置文件:
version: '3.7'
services:
web:
image: username/tag
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
version要大于等于3.7,volumes选项才支持type方式
linux 下:
docker-compose.yml配置文件:
version: '3.7'
services:
web:
image: username/tag
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
version要大于等于3.7,volumes选项才支持type方式
本文标题:docker container 和主机时间同步
本文链接:https://www.haomeiwen.com/subject/iyihuctx.html
网友评论