I am a beginner to Docker. That said, I noted the following which I think is kind of weird.
After executed a docker pull mysql/mysql-server:5.6.23 in console and after I played a little bit with Docker and his getting started tutorial, I started the pulled MySQL v5.6.23 (don't ask me why such an old version) container and I realized that the welcome message was showing the wrong version of MySQL:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.24 MySQL Community Server (GPL)
(...)
Still playing with docker commands, I discovered the following:
$ docker container inspect bde088053099
(...)
"Config": {
"Hostname": "bde088053099",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"3306/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"MYSQL_ROOT_PASSWORD=root",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PACKAGE_URL=https://repo.mysql.com/yum/mysql-5.6-community/docker/x86_64/mysql-community-server-minimal-5.6.24-2.el7.x86_64.rpm"
],
"Cmd": [
"mysqld"
],
"Image": "mysql/mysql-server:5.6.23",
"Volumes": {
"/var/lib/mysql": {}
},
"WorkingDir": "",
"Entrypoint": [
"/entrypoint.sh"
],
"OnBuild": null,
"Labels": {}
},
(...)
The package url is pointing to the next subversion of MySQL instead of the one I am aiming to:
"PACKAGE_URL=https://repo.mysql.com/yum/mysql-5.6-community/docker/x86_64/mysql-community-server-minimal-5.6.24-2.el7.x86_64.rpm" though the image name contains the right version number "Image": "mysql/mysql-server:5.6.23".