美文网首页
docker busybox

docker busybox

作者: darebeat | 来源:发表于2016-09-06 16:07 被阅读91次

    1.base images

    The base image with opkg management package.

    FROM scratch
    MAINTAINER Darebaet <fengwei2010@126.com>
    # 设置时区
    ENV TZ CST-8
    ENV TERM xterm
    
    # https://github.com/blang/busybox-bash-docker.git
    ADD ./rootfs.tar /
    ADD ./ipks /
    # http://downloads.openwrt.org/snapshots/trunk/x86/64/packages/base
    RUN opkg-cl install /opt/ipks/libgcc_5.2.0-1_x86_64.ipk && opkg-cl install /opt/ipks/libc_1.1.11-1_x86_64.ipk
    CMD ["/bin/sh"]
    

    docker build -t busybox:base .

    2.bash images

    The image build based on busybox:base,bash command utils is added.

    FROM busybox:base
    MAINTAINER Darebaet <fengwei2010@126.com>
    RUN opkg-install bash
    CMD ["/bin/bash"]
    

    docker build -t busybox:bash .

    相关文章

      网友评论

          本文标题:docker busybox

          本文链接:https://www.haomeiwen.com/subject/agvdettx.html