GithubHelp home page GithubHelp logo

tailynn-source / docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wenshunbiao/docker

0.0 0.0 0.0 807 KB

CoreOS Docker,让你更便捷、系统化的使用Docker管理你的服务

Home Page: https://brad.9iqu.cn/

License: Other

Dockerfile 60.73% Shell 35.11% Python 0.44% JavaScript 3.72%

docker's Introduction

CoreOS Docker

让你更便捷、系统化的使用Docker管理你的服务,一键定制你的环境
需借助 Systemd 服务管理,支持此服务的 Linux 系统都可安装,建议使用 Centos7 系统

Step.1 Install Docker

请自行安装Docker
参考教程:https://www.kancloud.cn/wenshunbiao/wenshunbiao/1310878

Step.2 Install CoreOS Docker

请使用root用户安装,忽略一些常规性的报错输出

useradd -d /home/core -m core && cd /home/core
git clone https://github.com/wenshunbiao/docker.git
chmod -R 777 docker/shell && export PATH="/home/core/docker/shell:$PATH"
install_coreos

安装到此结束,以下是一些使用示例或提示。

一些常用服务及快捷命令列表

在 /home/core/docker 预先封装了大量服务,文件夹名称即是服务名称
所有服务都安装在 /home/core/data 目录,需要修改服务的配置请在这里修改,改完使用 s service_name 重启生效

以 redis 为例,安装 redis 后,在 /home/core/data/redis 下能看到以下文件:
redis.conf redis.service
redis.conf 是 redis 的配置文件
redis.service 是启动 redis 服务所使用的启动参数,修改映射端口、目录等启动参数在这个文件修改

  • 常用服务
    • mysql
    • nginx
    • redis
    • daemon supervisor守护进程服务
    • ofelia 秒级定时器,可替代crontab,能和docker容器更方便的交互,https://github.com/mcuadros/ofelia
    • shadowsocks 飞机场
    • ...

更多快捷命令请查看 /home/core/docker/shell

  • 快捷命令
    • dps # 显示所有docker服务
    • dpp # 显示所有docker服务映射端口
    • i service_name # 安装服务
    • s service_name # 启动/重启 服务
    • p service_name # 停止服务
    • d service_name # 进入服务容器
    • j service_name # 查看服务历史记录日志
    • jf service_name # 滚动查看服务日志
    • atop # 查看系统负载
    • iotop # 查看系统I/O
    • fio # 测试系统I/O
    • docker_mirror_aliyun # 为docker配置阿里云源
    • ...

install service

i php                         # install php server
i nginx                       # install nginx share
i redis                       # install redis server

start/restart service

s php                         # start/restart php server
s nginx                       # start/restart nginx share
s redis                       # start/restart redis server

致谢

感谢 JetBrains 对开源项目的支持与帮助

avatar

License

The CoreOS Docker is open-sourced software licensed under the MIT license.

docker's People

Contributors

wenshunbiao 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.