Docker学习(2)

  1. 列出本地镜像,位于/var/lib/docker下
    ➜  ~  sudo docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    ubuntu              latest              d2a0ecffe6fa        2 weeks ago         188.4 MB
    centos              latest              7322fbe74aa5        5 weeks ago         172.2 MB
    
  2. 查找镜像
    ➜  ~  sudo docker search python
    NAME                                DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
    python                              Python is an interpreted, interactive, obj...   267       [OK]       
    django                              Django is a free web application framework...   76        [OK]       
    google/python                                                                       25                   [OK]
    google/python-runtime                                                               14                   [OK]
    kaggle/python                       Docker image for Python scripts run on Kaggle   5                    [OK]
    tutum/quickstart-python             Tutorial for getting started with Python a...   4                    [OK]
    azukiapp/python                     Docker image to run Python by Azuki - http...   3                    [OK]
    ceshine/python-datascience          Install essential tools for doing data sci...   2                    [OK]
    millipede/python                    Print a beautiful millipede with Python         2                    [OK]
    guilhem/jenkins-slave-python                                                        2                    [OK]
    kageurufu/ubuntu-python             Ubuntu-based image for hosting Python WSGI...   2                    [OK]
    twdevops/python                     ThoughtWorks DevOps CN Dockerized Python        1                    [OK]
    pathwar/python                      Python template for Pathwar levels              1                    [OK]
    ozzyjohnson/wheezy-python           Nearly identical to google/python, but sli...   0                    [OK]
    spilgames/python-common             Build-files for python-versions                 0                    [OK]
    nineseconds/docker-vagrant-python   Docker containers with Python tuned to run...   0                    [OK]
    cnry/python                         Minimal Python environment on Debian Jessie     0                    [OK]
    talenddev/python                    Baseimage with python                           0                    [OK]
    1science/python                     Python Docker images based on Alpine Linux      0                    [OK]
    orbweb/python                                                                       0                    [OK]
    folsomlabs/python                                                                   0                    [OK]
    muccg/python-base                   Base images that use python                     0                    [OK]
    webhippie/python                    Docker images for python                        0                    [OK]
    tatsushid/tinycore-python           A small but a fully functional Python runt...   0                    [OK]
    centerforopenscience/python                                                         0                    [OK]
    
  3. 拉取镜像
    ➜  ~  sudo docker pull centos
    
  4. 构建自己的docker镜像~
原文地址:https://www.cnblogs.com/evilxr/p/4310207.html