Giter Site home page Giter Site logo

docker-china-source's Introduction

国内docker镜像

经常需要安装一些软件做测试,想要使用docker环境搭建我们的测试环境,于是需要一批合适的官方镜像。直接拉取hub的镜像比较慢, 而且,镜像内部的source在国内访问比较慢。为了方便平时开发测试环境,收集了使用过的docker国内源的镜像。基本是将source切换成 aliyun。

怎么使用

下载本项目,然后寻找合适的os,修改Dockerfile, 然后执行

make build
make start

ps: 由于目标是测试环境,没有精简cache,反而保留了cache,如果需要精简,使用精简镜像后复制repo或者sources即可。

关于后台任务

docker默认不允许启动后台任务,所以service和systemctl就不能用了,会报错

Failed to get D-Bus connection: Operation not permitted

可以使用替换方案:

https://github.com/gdraheim/docker-systemctl-replacement

也可以直接本地特权模式启动:

docker run -d -it --rm --name=ldap2  --privileged ryan/centos:7 /usr/sbin/init
docker exec -it ldap2 /bin/bash

docker daemon

cat /etc/docker/daemon.json 
{ 
"registry-mirrors": ["https://registry.docker-cn.com", "http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn"] 
}

docker-china-source's People

Contributors

ryan-miao avatar shuweicloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-china-source's Issues

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.