docker centos7 容器问题
2015-08-07 10:38
666 查看
装上后,发现是装的最小版本好多命令不能用。
借鉴这篇文章http://www.linuxidc.com/Linux/2014-08/105682.htm可以举一反三啊。
不能够用的命令均可以用。举个service的例子
yum provides service
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.yun-idc.com
* updates: mirrors.aliyun.com
base/7/x86_64/filelists_db | 6.0 MB 00:00:01
extras/7/x86_64/filelists_db | 186 kB 00:00:00
updates/7/x86_64/filelists_db | 2.2 MB 00:00:00
initscripts-9.49.24-1.el7.x86_64 : The inittab file and the /etc/init.d scripts
Repo : base
Matched from:
Filename : /sbin/service
安装initscripts即可
yum install initscripts
完成后service
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
ok了
其实service还是不能,centos7 service其实是调用systemctl接着安装吧
借鉴这篇文章http://www.linuxidc.com/Linux/2014-08/105682.htm可以举一反三啊。
不能够用的命令均可以用。举个service的例子
yum provides service
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.yun-idc.com
* updates: mirrors.aliyun.com
base/7/x86_64/filelists_db | 6.0 MB 00:00:01
extras/7/x86_64/filelists_db | 186 kB 00:00:00
updates/7/x86_64/filelists_db | 2.2 MB 00:00:00
initscripts-9.49.24-1.el7.x86_64 : The inittab file and the /etc/init.d scripts
Repo : base
Matched from:
Filename : /sbin/service
安装initscripts即可
yum install initscripts
完成后service
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
ok了
其实service还是不能,centos7 service其实是调用systemctl接着安装吧
相关文章推荐
- docker安全最佳实践概述
- Flocker浅析与Docker插件(3)
- docker入门实践01
- openstack官方docker介绍
- 无忧之道:Docker中容器的备份、恢复和迁移
- Docker build WordPress
- Docker常见命令---简易教程
- 如何制作高质量的docker镜像
- 如何用Docker编排容器
- 基于Docker的PHP开发环境
- 《Docker入门实战》笔记(一)
- rest service + spring boot + docker - (a != b) ? b : a - ITeye技术网站
- docker下基于flannel的overlay网络分析
- Docker点滴
- Ubuntu 15.04 下 Docker 1.7.1 中DOCKER_OPTS配置不生效的解决
- Docker搭建Java web环境
- rest service + spring boot + docker
- Flocker浅析与Docker插件(2)
- Docker源码分析(七):Docker Container网络 (上)
- Docker容器的跨主机访问