1,sudo apt-get install docker.io

或者sudo apt-get install docker*

2,安装好之后

sudo docker -d 启动进程提示:

  1. yimiyan@mint ~ $ sudo docker -d
  2. 2015/05/19 22:25:43 docker daemon: 1.0.1 990021a; execdriver: native; graphdriver:
  3. [415a4572] +job initserver()
  4. [415a4572.initserver()] Creating server
  5. [415a4572] +job init_networkdriver()
  6. [415a4572] +job serveapi(unix:///var/run/docker.sock)
  7. 2015/05/19 22:25:43 Listening for HTTP on unix (/var/run/docker.sock)
  8. [415a4572] -job init_networkdriver() = OK (0)
  9. 2015/05/19 22:25:43 WARNING: Your kernel does not support cgroup swap limit.
  10. Error loading docker apparmor profile: exec: "/sbin/apparmor_parser": stat /sbin/apparmor_parser: no such file or directory ()
  11. [415a4572] -job initserver() = ERR (1)
  12. 2015/05/19 22:25:43 Error loading docker apparmor profile: exec: "/sbin/apparmor_parser": stat /sbin/apparmor_parser: no such file or directory ()

  执行: sudo apt-get install apparmor

执行完成之后,后台启动docker进程: sudo docker -d &

3,执行:sudo docker run -t -i index.alauda.cn/alauda/ubuntu /bin/bash

  

  1. yimiyan@mint ~ $ sudo docker run -t -i index.alauda.cn/alauda/ubuntu /bin/bash
  2. Unable to find image 'index.alauda.cn/alauda/ubuntu' locally
  3. Pulling repository index.alauda.cn/alauda/ubuntu
  4. ae983d5e88ce: Download complete
  5. 511136ea3c5a: Download complete
  6. 53f858aaaf03: Download complete
  7. 837339b91538: Download complete
  8. 615c102e2290: Download complete
  9. b39b81afc8ca: Download complete
  10. 92a05e689124: Download complete
  11. a5ec8ea8f4d9: Download complete
  12. c1d5c21f8a78: Download complete
  13. d37760e835dc: Download complete
  14. c4dd97affb83: Download complete
  15. 673f1fe20a3a: Download complete
  16. 77421a5e2b9c: Download complete
  17. de1f78ad6493: Download complete
  18. root@ffd019220845:/#

ps:

1)index.alauda.cn/alauda/ubuntu 为云雀的ubuntu镜像库地址。

2)pulling默认版本

3)run的时候自动pulling

4,查看当前系统中的镜像

  1. yimiyan@mint ~ $ sudo docker images
  2. REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
  3. ubuntu latest 07f8e8c5e660 2 weeks ago 188.3 MB
  4. busybox ubuntu-14.04 32e97f5f5d6b 4 weeks ago 5.609 MB
  5. busybox ubuntu-12.04 faf804f0e07b 4 weeks ago 5.455 MB
  6. busybox buildroot-2014.02 8c2e06607696 4 weeks ago 2.433 MB
  7. busybox latest 8c2e06607696 4 weeks ago 2.433 MB
  8. busybox buildroot-2013.08.1 3dba22db9896 4 weeks ago 2.489 MB
  9. index.alauda.cn/alauda/ubuntu latest ae983d5e88ce 4 months ago 255.1 MB

  

5,在docker中运行hello world

  1. yimiyan@mint ~ $ sudo docker run ae983d5e88ce echo " Hello world"
  2. Hello world

或者

  1. yimiyan@mint ~ $ sudo docker run index.alauda.cn/alauda/ubuntu echo " Hello world"
  2. Hello world

6,进入镜像系统

  1. yimiyan@mint ~ $ sudo docker run -t -i index.alauda.cn/alauda/ubuntu /bin/bash
  2. root@795904074f0a:/# ls
  3. bin dev home lib64 mnt proc run sbin srv tmp var
  4. boot etc lib media opt root run.sh set_root_pw.sh sys usr
  5. root@795904074f0a:/#

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

the END.

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

linux mint运行docker的更多相关文章

  1. Linux Mint安装Docker踩坑指南

    我家的服务器选用的Linux Mint系统,最近安装Docker的时候踩了一些小坑,但是总体还算顺利. 我们都知道Linux Mint系统是基于Ubuntu的,说实话用起来感觉还是很不错的,安装Doc ...

  2. Docker在Linux上运行NetCore系列(三)在Linux上使用Docker运行Asp.NetCore

    转发请注明此文章作者与路径,请尊重原著,违者必究. 系列文章:https://www.cnblogs.com/alunchen/p/10121379.html 开始说明 上几篇文章都是通过Linux运 ...

  3. Docker在Linux上运行NetCore系列(一)配置运行DotNetCore控制台

    转发请注明此文章作者与路径,请尊重原著,违者必究. 系列文章:https://www.cnblogs.com/alunchen/p/10121379.html 本篇文章操作系统信息 Linux:ubu ...

  4. 开始使用 Docker (Linux 上运行 SQL Server) 上的 SQL Server 容器 - SQL Server | Microsoft Docs

    原文:开始使用 Docker (Linux 上运行 SQL Server) 上的 SQL Server 容器 - SQL Server | Microsoft Docs 快速入门:使用 Docker ...

  5. Linux Mint 19.1 安装 Docker 过程笔记

    Linux Mint 19.1 安装 Docker 过程笔记 参考了很多教程,可能有很多教程已经过时. 综合记录一下. 首先修改一下系统的源,使用国内的源. 然后安装 docker sudo apt ...

  6. 使用 Linux Mint 作为主要操作系统的一些个人常用软件

    本篇文章讲一下一些 Linux 上的应用,多数为日常生活娱乐用的软件,同时也会讲一点开发工具,对于有兴趣继续研究 Linux 的可以参考一下. 目录 软件的安装方式 1.Software Manage ...

  7. 在Linux Mint上安装node.js和npm

    1.安装Node.js 前端开发过程中,很多项目使用npm的http-server的模块来运行一个静态的服务器,我个人在Dell的笔记本上安装的是Linux Mint最新版本,所以想尝试一下在Linu ...

  8. 安装Linux Mint

    1.尽量选择trusty的安装版本,kde和xfce不支持Win+..快捷键,推荐cinnamon:制作安装U盘后,选择非EFI模式启动:选择start Linux Mint(就是第一项): 2.In ...

  9. Linux Mint SmoothTask2的安装方法

    首先,先下载smooth task:点击这里下载 下载之后解压缩,里面有个install文件,点击打开: To install plasmoid unpack archive, go to the d ...

随机推荐

  1. 微信小程序实例教程(一)

    序言 开始开发应用号之前,先看看官方公布的「小程序」教程吧!(以下内容来自微信官方公布的「小程序」开发指南) 本文档将带你一步步创建完成一个微信小程序,并可以在手机上体验该小程序的实际效果.这个小程序 ...

  2. C++头文件#include<bits/stdc++.h>

    一句话的事,直截了当——#include<bits/stdc++.h>包含C++的所有头文件 参考网站(点击):http://www.tuicool.com/articles/m6neUj ...

  3. ZooKeeper概述

    1.Zookeeper概述 Zookeeper 是 Google 的 Chubby一个开源的实现,是 Hadoop 的分布式协调服务.它包含一个简单的原语集,分布式应用程序可以基于它实现同步服务,配置 ...

  4. Integer自动装箱拆箱bug,创建对象在-128到127

    1 public class Demo3 { public static void main(String[] args) { Integer a = 1; Integer b = 2; Intege ...

  5. Xamarin For Visual Studio 3.0.54.0 完整离线破解版

    Xamarin For Visual Studio 3.0.54.0 完整离线破解版 Xamarin For Visual Studio就是原本的Xamarin For Android 以及 Xama ...

  6. 如何判断js是否加载完全

    var script=document.createElement('script'); if(script.onreadystatechange){ script.onreadystatechang ...

  7. Codeforces Round #364 (Div. 2) E. Connecting Universities (DFS)

    E. Connecting Universities time limit per test 3 seconds memory limit per test 256 megabytes input s ...

  8. nano编辑器的设置

    1.取消nano的默认编辑 自己的虚拟机ubuntu不知道怎么搞的,在添加定时任务的时候总是 编辑,一开始不知道,百度了以下这个是所谓的nano,在定时任务的时候总是默认出来,自己习惯了vi,nano ...

  9. PAT (Advanced Level) 1084. Broken Keyboard (20)

    简单题. #include<cstdio> #include<cstring> #include<cmath> #include<vector> #in ...

  10. Codeforces #377 Div2

    打得还不错的一场CF,题目质量也很高,今后还要继续努力 A题: 题意:给定一个数k,让其乘一个最小的数,使乘得以后的数要不被10整除,要不减去r以后被10整除,求这个最小的数 #include < ...