Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql:5.7 docker image tag appears to default to oracle rather than debian as it used to #878

Closed
getmyfrank opened this issue Jul 7, 2022 · 3 comments

Comments

@getmyfrank
Copy link

I was rebuilding a mysql image today and ran into an error that apt-get was not found. Looking into it more I found that it was pulling the oracle image for mysql:5.7 rather than the debian one as it used to.

@getmyfrank
Copy link
Author

getmyfrank commented Jul 7, 2022

Some evidence:

docker image history mysql:5.7 --no-trunc
IMAGE                                                                     CREATED        CREATED BY                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   SIZE      COMMENT
sha256:34e82e62381842f555f6e8b347645650c8b154746957044cd28c1f28b8817216   36 hours ago   /bin/sh -c #(nop)  CMD ["mysqld"]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0B
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  EXPOSE 3306 33060                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         0B
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  ENTRYPOINT ["docker-entrypoint.sh"]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       0B
<missing>                                                                 36 hours ago   /bin/sh -c #(nop) COPY file:d27cf504fa76fb5a4038020a01eaaf52723b17b751566119de311adacb043752 in /usr/local/bin/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              13.6kB
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  VOLUME [/var/lib/mysql]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   0B
<missing>                                                                 36 hours ago   /bin/sh -c set -eux;  yum install -y --setopt=skip_missing_names_on_install=False "mysql-shell-$MYSQL_SHELL_VERSION";  yum clean all;   mysqlsh --version                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    201MB
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  ENV MYSQL_SHELL_VERSION=8.0.29-1.el7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      0B
<missing>                                                                 36 hours ago   /bin/sh -c set -eu;  . /etc/os-release;  {   echo '[mysql-tools-community]';   echo 'name=MySQL Tools Community';   echo "baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/${VERSION_ID%%[.-]*}/\$basearch/";   echo 'enabled=1';   echo 'gpgcheck=1';   echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql';   echo 'module_hotfixes=true';  } | tee /etc/yum.repos.d/mysql-community-tools.repo                                                                                                                                                                                                                                                                                                                                                             215B
<missing>                                                                 36 hours ago   /bin/sh -c set -eux;  yum install -y --setopt=skip_missing_names_on_install=False "mysql-community-server-minimal-$MYSQL_VERSION";  yum clean all;  grep -F 'socket=/var/lib/mysql/mysql.sock' /etc/my.cnf;  sed -i 's!^socket=.*!socket=/var/run/mysqld/mysqld.sock!' /etc/my.cnf;  grep -F 'socket=/var/run/mysqld/mysqld.sock' /etc/my.cnf;  { echo '[client]'; echo 'socket=/var/run/mysqld/mysqld.sock'; } >> /etc/my.cnf;   ! grep -F '!includedir' /etc/my.cnf;  { echo; echo '!includedir /etc/mysql/conf.d/'; } >> /etc/my.cnf;  mkdir -p /etc/mysql/conf.d;   mysqld --version;  mysql --version                                                                                                                                                                   79.2MB
<missing>                                                                 36 hours ago   /bin/sh -c set -eu;  . /etc/os-release;  {   echo '[mysql5.7-server-minimal]';   echo 'name=MySQL 5.7 Server Minimal';   echo 'enabled=1';   echo "baseurl=https://repo.mysql.com/yum/mysql-5.7-community/docker/el/${VERSION_ID%%[.-]*}/\$basearch/";   echo 'gpgcheck=1';   echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql';   echo 'module_hotfixes=true';  } | tee /etc/yum.repos.d/mysql-community-minimal.repo                                                                                                                                                                                                                                                                                                                                                 225B
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  ENV MYSQL_VERSION=5.7.38-1.el7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            0B
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  ENV MYSQL_MAJOR=5.7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       0B
<missing>                                                                 36 hours ago   /bin/sh -c set -eux;  key='859BE8D7C586F538430B19C2467B942D3A79BD29';  export GNUPGHOME="$(mktemp -d)";  gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key";  gpg --batch --export --armor "$key" > /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql;  rm -rf "$GNUPGHOME"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    3.21kB
<missing>                                                                 36 hours ago   /bin/sh -c set -eux;  yum install -y --setopt=skip_missing_names_on_install=False oracle-epel-release-el7;  yum install -y --setopt=skip_missing_names_on_install=False   bzip2   gzip   openssl   xz   zstd  ;  yum clean all                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               13.6MB
<missing>                                                                 36 hours ago   /bin/sh -c set -eux;  arch="$(uname -m)";  case "$arch" in   aarch64) gosuArch='arm64' ;;   x86_64) gosuArch='amd64' ;;   *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;;  esac;  curl -fL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch.asc";  curl -fL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch";  export GNUPGHOME="$(mktemp -d)";  gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4;  gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu;  rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc;  chmod +x /usr/local/bin/gosu;  gosu --version;  gosu nobody true   2.31MB
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  ENV GOSU_VERSION=1.14                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     0B
<missing>                                                                 36 hours ago   /bin/sh -c set -eux;  groupadd --system --gid 999 mysql;  useradd --system --uid 999 --gid 999 --home-dir /var/lib/mysql --no-create-home mysql;   mkdir /var/lib/mysql /var/run/mysqld;  chown mysql:mysql /var/lib/mysql /var/run/mysqld;  chmod 1777 /var/lib/mysql /var/run/mysqld;   mkdir /docker-entrypoint-initdb.d                                                                                                                                                                                                                                                                                                                                                                                                                                                  2.72kB
<missing>                                                                 36 hours ago   /bin/sh -c #(nop)  CMD ["/bin/bash"]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         0B
<missing>                                                                 36 hours ago   /bin/sh -c #(nop) ADD file:50fb7d83a9d57e5a0a6af5e5daf27e464ae8a28c196ce6bad6c254dfc1774cdd in /

Oracle and yum are both referenced in the layers.

@pschiffe
Copy link

pschiffe commented Jul 7, 2022

see commit: 9ed73fd and PR: #867

@wglambert
Copy link

Duplicate of #877

The change was from #867
We don't have a great way of communicating changes to users outside of pull requests and commits in these repos, so to be aware of upcoming and past changes check out the PR's over at https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fmysql+is%3Aclosed

A good practice to use is a more specific tag that specifies the OS, and major.minor release numbers which are under "supported tags" https://hub.docker.com/_/mysql/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants