Deploying MySQL on Linux with Docker •Stopping and Deleting a MySQL Container •Upgrading a MySQL Server Container •More Topics on Deploying MySQL Server with Docker Downloading a MySQL Server Docker Image Important For users of MySQL Enterprise Edition : A subscription is required to use the Docker images for MySQL Enterprise Edition. Subscriptions work by a Bring Your Own License model; see How to Buy MySQL Products and Services for details. Downloading the server image in a separate step is not strictly necessary; however, performing this step before you create your Docker container ensures your local image is up to date. To download the MySQL Community Edition image, run this command: docker pull mysql/mysql-server: tag The  tag  is the label for the image version you want to pull (for example,  5.6 ,  5.7 ,  8.0 , or  latest ). If : tag  is omitted, the  latest  label is used, and the image for the latest GA version of MySQL Community Server is downloaded. Refer to the list of tags for available versions on the mysql/mysql-server page in the Docker Hub. To download the MySQL Community Edition image from the Oracle Container Registry (OCR), run this command: docker pull container-registry.oracle.com/mysql/mysql-server: tag To download the MySQL Enterprise Edition image from the OCR, you need to first accept the license agreement on the OCR and log in to the container repository with your Docker client: •Visit the OCR at https://container-registry.oracle.com/ and choose  MySQL . •Under the list of MySQL repositories, choose  enterprise-server . •If you have not signed in to the OCR yet, click the  Sign in  button on the right of the page, and then enter your Oracle account credentials when prompted to. •Follow the instructions on the right of the page to accept the license agreement. •Log in to the OCR with your Docker client (the  docker  command) using the  docker login  command: #  docker login container-registry.oracle.com  Username:  Oracle-Account-ID Password:  password Login successful. Download the Docker image for MySQL Enterprise Edition from the OCR with this command: docker pull container-registry.oracle.com/mysql/enterprise-server: tag There are different choices for  tag , corresponding to different versions of MySQL Docker images provided by the OCR: To download the MySQL Enterprise Edition image from My Oracle Support website, go onto the website, sign in to your Oracle account, and perform these steps once you are on the landing page: • 8.0 ,  8.0. x  ( x  is the latest version number in the 8.0 series),  latest : MySQL 8.0, the latest GA • 5.7 ,  5.7. y  ( y  is the latest version number in the 5.7 series): MySQL 5.7 183