Skip to content

Instantly share code, notes, and snippets.

@orrisroot
Created April 23, 2026 08:56
Show Gist options
  • Select an option

  • Save orrisroot/a4d0f8ab76d42619e8faa1844d7b4977 to your computer and use it in GitHub Desktop.

Select an option

Save orrisroot/a4d0f8ab76d42619e8faa1844d7b4977 to your computer and use it in GitHub Desktop.
#!/bin/bash
CONTAINER_NAME=mariadb
docker exec -it ${CONTAINER_NAME} /bin/sh -c "exec mariadb -u root -p\"\$MYSQL_ROOT_PASSWORD\" $*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment