Try to build your own Alpine-based Docker base image and component mirroring

Source: Internet
Author: User
Tags docker ps

Installing ubuntu14.04

And then

#获取root权限

sudo su

#安装docker

Apt-get Install Docker

#准备基础镜像

Docker Pull Alpine

Docker run-a stdin-a stdout-i-T alpine/bin/sh

Execution enters the container

/#

Exit launches container interior

Docker Ps-a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
573010aaf72d alpine:latest "/bin/sh" 4 minutes ago Exited (1) seconds ago Sad_cori

Docker Attach 573010aaf72d
FATA[0000] cannot attach to a stopped container, start it first

The container stops and then opens after you launch the Run interaction mode

Docker start 573010aaf72d

Docker Attach 573010aaf72d

Then press a few more to enter.

/#

# #到这里 is the equivalent of this container has already been completed you just need to install command line multipoint download command For example below command Axel

APK --update add Axel

However, the domestic APK source package is not very good often disconnected actually use it seems to wait a little time to estimate that the official Docker will be changed to use the Alpine, basically except for Axel so small package will be wrong hehe

Try to build your own Alpine-based Docker base image and component mirroring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.