On Thu, Oct 29, 2020 at 05:31:56PM +0800, Wang Chenglong wrote:
[What] The docker file for build a container to provide network time synchronization service for virtual and physical machines.
[what] ntp-server is used to synchronize time between physical machine and virtual machine.
+FROM centos:7 +MAINTAINER Wang Chenglong 18509160991@163.com
+RUN yum repolist +RUN yum -y install ntp && \
- yum clean all
+RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum repolist and yum clean all is necessary?
Thanks, Yinsi