dockerfile 在执行 RUN source ~/.bashrc 的时候会报错: RUN source ~/.bashrc: 0.188 /bin/sh: 1: source: not found 原因
dockerfile默认的shell是sh,无法使用source
解决方案
在 RUN source ~/.bashrc 前面添加以下指令,将shell改为ba…
出现ntpdate: the NTP socket is in use, exiting的错误信息通常意味着NTP客户端或服务器已经在运行,并且正在使用NTP socket。在CentOS 7.4上,ntpd或chronyd服务可能会与ntpdate命令冲突,因为它们都用于时间同步。 首先,您可以尝…