Docker downloads Ubuntu and makes changes to generate a new image submission

Source: Internet
Author: User
Tags install django pip install django docker run

A docker pull ubuntu, first download down a mirror,

Or start a mirror locally

Docker Run-i-T Ubuntu/bin/bash

Two

Enter a certain update operation

# Shell on Container

$ apt-get Update

$ apt-get-y Install Python-pip

$ pip Install Django

The above action is to update the source and then install Pip and Django

Three

Update image

Docker Commit- m="description about Images" --author="Author" {container_id} {repository/ Images_name:Tag}

CONTAINER_ID for the image of the original ID, the latter repository can write their own name, Imgaes_name can write Ubuntu,tag can write v2

Four starts from the updated image

Docker run-d-T Wang/ubuntu:v2/bin/bash background run

or Docker Run-i-T Wang/ubuntu:v2/bin/bash Interactive run

Docker downloads Ubuntu and makes changes to generate a new image submission

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.