Giter VIP home page Giter VIP logo

docker-images's Introduction

docker-images

本仓库为自定义及收藏的一些镜像,方便使用。包含PHP5、PHP7开发环境等镜像。

Docker常用命令

# 下载镜像
docker pull IMAGE[:TAG]
docker pull daocloud.io/centos:6.8

# 查看已下载镜像列表
docker images [-a]

# 给镜像添加标签
docker tag  IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
dcoker tag daocloud.io/centos:6.8 centos:6.8

# 删除镜像:必须先删除依赖该镜像的容器才能删除镜像
docker rmi [OPTIONS] IMAGE [IMAGE...]

# 创建并运行容器
docker run [OPTIONS] IMAGE [COMMOND] [ARG...]
docker run -it daocloud.io/centos:6.8 /bin/bash

# 启动容器
docker start CONTAINER_ID

# 停止容器
docker stop CONTAINER_ID 

# 删除容器
docker rm CONTAINER_ID 

# 执行容器内命令
docker exec [-d] [-i] [-t] CONTAINER_ID  [COMMOND] [ARG...]
docker exec -it 4b5634aaef69 /bin/bash
docker exec 4b5634aaef69 ps -ef
docker exec 4b5634aaef69 nginx -s reload

# 导出镜像
docker save [OPTIONS] IMAGE [IMAGE...]
docker save -o ubuntu_latest.tar ubuntu:latest

# 导入镜像
docker load --input ubuntu_latest.tar
docker load < ubuntu_latest.tar

镜像仓库

镜像加速器

1、加速器 DaoCloud - 业界领先的容器云平台
https://www.daocloud.io/mirror#accelerator-doc

2、镜像加速 | Docker **
https://www.docker-cn.com/registry-mirror

学习资料

1、Docker - 随笔分类 - 飞鸿影~ - 博客园
http://www.cnblogs.com/52fhy/category/895062.html

docker-images's People

Contributors

52fhy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.