centos7.4-tools封装之Dockerfile
FROM hub.c.163.com/library/centos:7.4.1708
MAINTAINER <>
LABEL version="centos:7.4.1708-tools" author="<>"
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
RUN yum install -y vim wget curl bzip2 unzip tcpdump bash-completion dos2unix psmisc \
tcpdump less telnet net-tools lsof sysstat python-setuptools lrzsz ntpdate
RUN ln -fs ../usr/share/zoneinfo/Asia/Shanghai /etc/localtime
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
封装镜像
docker build -t centos:7.4-tools .
使用下面命令可以查看上面定义的标签。
docker inspect -f "{{ .Config.Labels }}" centos:7.4-tools
相关推荐
PinkBean 2020-08-11
changecan 2020-11-19
ECSHOP专属建设 2020-11-13
88427810 2020-11-02
步知道 2020-10-27
Junzizhiai 2020-10-10
jackalwb 2020-10-05
小网管 2020-09-03
shiwenqiang 2020-09-14
85251846 2020-09-14
summerinsist 2020-08-21
87901735 2020-08-19
85407718 2020-08-09
MichelinMessi 2020-07-30
suosuo 2020-07-28
CARBON 2020-07-28
lizhengfa 2020-07-27
88427810 2020-07-26