DEV Community

Cover image for Bitnami MySQL Docker Image Tags Deleted
Sean Boult
Sean Boult

Posted on

Bitnami MySQL Docker Image Tags Deleted

So Bitnami was acquired by VMware and they did some business shenanigans and then got rid of all the bitnami/mysql tags.

Errors you may have encountered when trying to start your db container.

manifest for bitnami/mysql:latest not found: manifest unknown

or

Unable to find image 'bitnami/mysql:latest' locally

This article should give you some options to get a working docker mysql db.

mysql/mysql

You can use the official mysql docker image but it will require you to change a few things.

Docker compose file where you can replace the "mydbname" with something more descriptive for you app.

name: mydbname

services:
  db:
    image: mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: dev
      MYSQL_DATABASE: mydbname
    volumes:
      - mydbname-data:/var/lib/mysql
    ports:
      - 3306:3306
    healthcheck:
      test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-pdev']
      interval: 5s
      timeout: 3s
      retries: 10
volumes:
  mydbname-data:
    driver: local
Enter fullscreen mode Exit fullscreen mode

.env file with a DB url.

DATABASE_URL="mysql://root:dev@localhost/mydbname"
Enter fullscreen mode Exit fullscreen mode

bitnamisecure/mariadb

The alternative is use the new bitnamisecure/mariadb but that comes with some risk if they rug pull this image too.

Docker compose file where you can replace the "mydbname" with something more descriptive for you app.

name: mydbname

services:
  db:
    image: bitnamisecure/mariadb:latest
    container_name: mydbname-db
    restart: always
    environment:
      MARIADB_ROOT_USER: dev
      MARIADB_ROOT_PASSWORD: dev
      MARIADB_DATABASE: mydbname
    healthcheck:
      test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
      timeout: 20s
      retries: 10
    volumes:
      - mydbname-data:/bitnami/mysql/data
    ports:
      - 3306:3306
  redis:
    image: 'bitnami/redis:latest'
    container_name: mydbname-redis
    restart: always
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    ports:
      - 6379:6379
volumes:
  mydbname-data:
    driver: local
Enter fullscreen mode Exit fullscreen mode

.env file with a DB url.

DATABASE_URL="mysql://dev:dev@localhost/mydbname"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)