1. 创建Dockerfile [dongfeng@localhost test]$ cat Dockerfile FROM ubuntu:18.04 MAINTAINER The UbuntuOS Project <dongfeng@baicells.com> ENV container docker ENV LC_ALL C ENV DEBIAN_FRONTEND noninteractive RUN sed -i 's/# deb/deb/g' /etc/apt/sources.list RUN apt-get update -yqq \ && apt-get install -yq apt-utils \ && apt-get install -yq curl \ && apt-get install -yq git \ && apt-get install -yq unzip zip tar \ && apt-get install -yq ca-certificates \ && apt-get install -yq bash-completion \ && apt-get install -yq iproute2 iputils-ping \ && apt-get install -yq systemd systemd-sysv \ && apt-get clean \ && apt-get autoclean \ && apt-get autoremove \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN cd /lib/systemd/system/sysinit.……

阅读全文