All Projects → wenshunbiao → docker

wenshunbiao / docker

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

Programming Languages

Dockerfile
14818 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to docker

Torcx Zfs
A torcx module for ZFS on CoreOS
Stars: ✭ 16 (-95.63%)
Mutual labels:  coreos
Terraform Aws Kubernetes
Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more
Stars: ✭ 118 (-67.76%)
Mutual labels:  coreos
python-on-coreos
Python on CoreOS. works well with ansible.
Stars: ✭ 24 (-93.44%)
Mutual labels:  coreos
Coreos Nvidia
Yet another NVIDIA driver container for Container Linux (aka CoreOS)
Stars: ✭ 36 (-90.16%)
Mutual labels:  coreos
Typhoon
Minimal and free Kubernetes distribution with Terraform
Stars: ✭ 1,397 (+281.69%)
Mutual labels:  coreos
Vishwakarma
Terraform modules to create a self-hosting Kubernetes cluster on opinionated Cloud Platform.
Stars: ✭ 127 (-65.3%)
Mutual labels:  coreos
Tack
Terraform module for creating Kubernetes cluster running on Container Linux by CoreOS in an AWS VPC
Stars: ✭ 734 (+100.55%)
Mutual labels:  coreos
libvirt-ocp4-provisioner
Automate your OCP4 installation
Stars: ✭ 82 (-77.6%)
Mutual labels:  coreos
Mayu
Mayu helps you to provision a cluster of bare metal machines with CoreOS Container Linux
Stars: ✭ 108 (-70.49%)
Mutual labels:  coreos
corezfs
ZFS on Linux (ZoL) on CoreOS
Stars: ✭ 27 (-92.62%)
Mutual labels:  coreos
Docker Zabbix Coreos
Docker container with patched Zabbix agent for CoreOS server monitoring
Stars: ✭ 36 (-90.16%)
Mutual labels:  coreos
Kovhernetes
Create Kubernetes clusters on the OVH Cloud platform
Stars: ✭ 55 (-84.97%)
Mutual labels:  coreos
Kube Linode
🐳 Provision a Kubernetes/CoreOS cluster on Linode
Stars: ✭ 207 (-43.44%)
Mutual labels:  coreos
Terra Aws Core Kube
Terraform configuration to bootstrap a Kubernetes Cluster on top of CoreOS using AWS-EC2 instances
Stars: ✭ 10 (-97.27%)
Mutual labels:  coreos
mantle
Mantle: Gluing Container Linux together
Stars: ✭ 95 (-74.04%)
Mutual labels:  coreos
Deis
Deis v1, the CoreOS and Docker PaaS: Your PaaS. Your Rules.
Stars: ✭ 6,107 (+1568.58%)
Mutual labels:  coreos
Rust Etcd
An etcd client library for Rust.
Stars: ✭ 119 (-67.49%)
Mutual labels:  coreos
k8s-ldap
Kubernetes - LDAP authentication with Dex
Stars: ✭ 59 (-83.88%)
Mutual labels:  coreos
seedbox
Baremetal CoreOS cluster provisioner with web UI
Stars: ✭ 23 (-93.72%)
Mutual labels:  coreos
Container Linux Update Operator
A Kubernetes operator to manage updates of Container Linux by CoreOS
Stars: ✭ 208 (-43.17%)
Mutual labels:  coreos

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
    • v2ray 飞机场
    • ...

更多快捷命令请查看 /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

stop service

p php                         # stop php server
p nginx                       # stop nginx share
p redis                       # stop redis server

进阶

如果您觉得本项目不错,当现有服务不能完全适合您,或者没有您需要的服务时,您可以选择 Fork 本仓库

  1. 扩展服务非常简单,如新增一个 nas 服务,您可以复制一份已有的服务来修改,如 cp -r redis nas
  2. 接着修改里面的文件,如Dockerfile的构建内容、redis.service重命名为nas.service并修改里面的内容和换成你自己的镜像
  3. 潜规则:conf目录下的配置文件,安装服务的时候会一起copy到/home/core/data/nas下
  4. 然后可以着手build自己的镜像并推送到云仓库

这样一个服务就扩展完毕啦,修改原有服务的话,直接修改原文件就好了,然后自己重新build一个镜像,并把service文件里面的镜像替换成自己的

致谢

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

avatar

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].