环境介绍: Docker版本:1.5.0 镜像:docker.io:centos latest 操作步骤: 1.启动镜像 docker run -ti centos /bin/bash 2.安装passwd yum install passwd -y 3.修改Centos root密码 # passwd Changing password for user root. New password: BAD PASSWORD: The password is shorter than charact
前面在部署容器,使用docker容器作为jenkins的Slave节点时,会发现在使用centos作为镜像源拉去容器,不能正常连接,最后是因为centos的sshd的问题 下面专门是centos容器安装sshd的实验 1. 拉去centos的镜像 [root@node6 ~]# docker pull centos [root@node6 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest days ago .
转载自:http://www.linuxidc.com/Linux/2016-03/129396.htm 今天在Linux主机(CentOS 7)安装(yum install方式)Mariadb(即开源MySQL)后,无法启动mariadb,其实是安装不完整,当然启动不了,更不用说输入"mysql -u root"提示Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)了 .没什么技术含量的解决