Linux Mint runs Docker

Source: Internet
Author: User
Tags docker run linux mint

1,sudo Apt-get Install Docker.io

or sudo apt-get install docker*

2, after installation.

sudo docker-d Start process tip:

[Email protected] ~ $ sudo docker-d2015/05/19 22:25:43 Docker daemon:1.0.1 990021a; execdriver:native; Graphdriver: [415a4572] +job initserver () [415a4572.initserver ()] Creating server[415a4572] +job init_networkdriver () [ 415A4572] +job Serveapi (unix:///var/run/docker.sock) 2015/05/19 22:25:43 Listening for HTTP on Unix (/var/run/ Docker.sock) [415a4572]-job init_networkdriver () = OK (0) 2015/05/19 22:25:43 warning:your kernel does not support Cgroup Swap limit. Error loading docker apparmor profile:exec: "/sbin/apparmor_parser": Stat/sbin/apparmor_parser:no such file or director Y () [415a4572]-job initserver () = ERR (1) 2015/05/19 22:25:43 Error loading docker apparmor profile:exec: "/sbin/apparmor _parser ": Stat/sbin/apparmor_parser:no such file or directory ()

Execute: sudo apt-get install AppArmor

After execution completes, the Docker process starts in the background: sudo docker-d &

3, execute: sudo docker run-t-i Index.alauda.cn/alauda/ubuntu/bin/bash

  

[Email protected] ~ $ sudo docker run-t-i index.alauda.cn/alauda/ubuntu  /bin/bashunable to find image ' Index.alauda. Cn/alauda/ubuntu ' locallypulling repository index.alauda.cn/alauda/ubuntuae983d5e88ce:download complete 511136ea3c5a:download Complete 53f858aaaf03:download Complete 837339b91538:download complete 615c102e2290:download Co Mplete b39b81afc8ca:download Complete 92a05e689124:download complete a5ec8ea8f4d9:download complete C1d5c21f8a78:down Load complete D37760e835dc:download Complete c4dd97affb83:download complete 673f1fe20a3a:download complete 77421A5E2B9 C:download complete De1f78ad6493:download complete [email protected]:/#

Ps:

1) Index.alauda.cn/alauda/ubuntu The Ubuntu Image Library address for the lark.

2) Pulling default version

3) automatic pulling when run

4. View the image in the current system

[Email protected] ~ $ sudo docker imagesrepository                      TAG                   IMAGE ID            CREATED             VIRTUAL sizeubuntu                          latest< c6/>07f8e8c5e660        2 weeks ago         188.3 mbbusybox                         ubuntu-14.04          32e97f5f5d6b        4 weeks ago         5.609 Mbbusybox                         ubuntu-12.04          faf804f0e07b        4 weeks ago         5.455 Mbbusybox                         buildroot-2014.02     8c2e06607696        4 weeks ago         2.433 mbbusybox                         latest                8c2e06607696        4 weeks ago         2.433 Mbbusybox                         buildroot-2013.08.1   3dba22db9896        4 weeks ago         2.489 Mbindex.alauda.cn/alauda/ubuntu   Latest                ae983d5e88ce        4 months ago        255.1 MB

  

5. Run Hello World in Docker

[Email protected] ~ $ sudo docker run  ae983d5e88ce   echo ' Hello World ' Hello World

Or

[Email protected] ~ $ sudo docker run  index.alauda.cn/alauda/ubuntu   echo ' Hello World ' Hello World

6, enter the mirror system

[Email protected] ~ $ sudo docker run-t-i index.alauda.cn/alauda/ubuntu/bin/bash[email protected]:/# Lsbin Dev Home lib *    MNT proc Run    sbin    SRV    tmp varboot etc lib    media    opt root run.sh set_root_pw.sh sys    Usr[email protected]:/#

----------------------------------

The END.

At here, thanks my friend for help me to learn it.

Linux Mint runs Docker

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.