docker 新容器修改
来源:互联网 发布:商场数据 编辑:程序博客网 时间:2024/06/05 22:52
UsePAM no
PermitRootLogin yes
启动 ssh 服务:service sshd start
开机自启动: chkconfig --add sshd chkconfig sshd on
注:不需要安装 sshd 服务也可以,全都通过 映射的形式,将你需要的东西都放在 宿主机上
如: 需要安装的软件 docker run -itd -v /user/src/soft/:/usr/src/soft/ --net=none --name=soft_test centos /bin/bash
4.安装 passwd
yum -y install passwd
passwd 运行设置密码
5.安装 vim vi
yum -y install vi vim
6.安装 net-tool ,wget
yum -y install net-tools.x86_64 (通过yum search ifconfig)
yum -y install wget
7.修改 镜像bash-4.1#
# vim ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# vim ~/.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
source ~/.bash_profile; source ~/.bashrc
8.rsyslog 服务安装
yum -y install rsyslog
chkconfig --add rsyslog
chkconfig rsyslog on
9.碰到这种警告的时候,需要修改 docker 启动脚本配置
[WARNING] 082/032015 (572) : [/usr/local/haproxy/sbin/haproxy.main()] Cannot raise FD limit to 131088.
[WARNING] 082/032015 (572) : [/usr/local/haproxy/sbin/haproxy.main()] FD limit (1024) too low for maxconn=65535/maxsock=131088. Please raise 'ulimit-n' to 131088 or more to avoid any trouble.
解决:sudo sh -c 'printf "\nulimit -HSn 999999\n" >> /etc/sysconfig/docker'
sudo service docker restart- docker 新容器修改
- Docker 容器时区修改
- docker容器修改并保存
- 解决docker容器中文乱码,修改docker容器编码格式
- 解决docker容器中文乱码,修改docker容器编码格式
- 解决docker容器中文乱码,修改docker容器编码格式
- 修改docker镜像,容器存放位置。
- 保存修改后的Docker容器
- Docker 新建及使用、修改容器
- docker保存对容器的修改
- 修改docker镜像,容器存放位置。
- docker保存对容器的修改
- docker保存对容器的修改
- docker保存对容器的修改
- docker保存对容器的修改
- 修改运行中的docker容器的环境
- 修改docker镜像,容器存放位置。
- docker 保存对容器的修改
- Spring Batch学习
- RxSwift:ReactiveX for Swift 翻译
- JLINK 下载uboot到nor flash
- 轮廓2
- 项目中遇到的零散问题(前端方面)
- docker 新容器修改
- high availability numbers
- phpredis中文手册——《redis中文手册》 php版
- android学习——SP方法实现用户登录
- JavaScript合并两个Json对象
- FFMPEG之TimeBase成员理解
- mysql中用变量做表名的方法
- 正则表达式(参考java编程思想)
- How much common sense have YOU got? Take the test