Docker Community Forums

Share and learn in the Docker community.

Need MySQL 5.0.41 image


(Simonsharry) #1

Hello,

I need a Docker image for MySQL 5.0.41 that I can run on Ubuntu 16.04.

This image is not available here: https://hub.docker.com/_/mysql/

When a new Docker user runs into this situation, what does he do:

  • Wait for the image to become available?
  • Contact the vendor (MySQL in this case)?
  • Or, create one himself because it is very straightforward?

Also, for non-expert end-users like myself (who are not expert in tracking and resolving package and OS dependencies), are there any technical constraints to building Docker images for very old packages (eg MySQL 5.0.41 in my case) that are to run on latest OSes (eg Ubuntu 16.04 in mycase)?

Thanks in advance,
/HS


(Jeff Anderson) #2

Hello,

Without knowing the specific details of the mysql official image, my guess is that the versions they have are only currently supported versions of mysql.

It is very doable to create an image with an older version of mysql installed. You could take a look at how the existing image is built by looking here: https://github.com/docker-library/mysql

You can then use that as a guide to create your own image, but for an image with the version you are interested in.

I’d recommend going through the docker docs a bit to familiarize yourself with docker’s major concepts. Image building is covered here: https://docs.docker.com/engine/userguide/containers/dockerimages/

Hopefully this will get you pointed in the right direction.