我在我的很多服务器上安装了net,但是我的mariaDB服务器有问题:由于mysql依赖关系,我无法安装net。
[root@XXXXXXX:~]# yum install net-snmp
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Determining fastest mirrors
centos7-x86_64
请参阅系统上的MySQL stautus。
[root@n yum.repos.d]# rpm -qa | grep mysql
mysql-libs-5.1.73-3.el6_5.x86_64
mysql-community-release-fc21-5.noarch
[root@n yum.repos.d]# yum remove mysql
Setting up Remove Process
No Match for argument: mysql
Package(s) mysql available, but not installed.
No Packages marked for
这些天我正在学习码头,并开始建立自己的mysql形象。
Dockerfile:
FROM centos
MAINTAINER Michael
ENV REFRESHED_AT 2016-07-29
RUN yum install -y mysql mariadb-server
VOLUME /var/lib/mysql
ENTRYPOINT ["/usr/libexec/mysqld", "--user=root"]
EXPOSE 3306
码头运行命令
docker run -d --name mysql -v /root/docker/mysql/data: