Skip to content

script create_db.sh takes wrong docker image #2

@ghost

Description

I run into a failure with script create_db.sh. This uses the command set $( docker ps|grep ${MYSQL_DOCKER_NAME}|awk '{ print $1 }' ) to get the mysql / mariadb docker image.

The problem was that I had already a docker instance with mysql in it name, so the commands got two images.

I fixed it locally for me by using MYSQL_DOCKER_NAME=${1:-mariadb} instead of MYSQL_DOCKER_NAME=${1:-mariadb}. But guess I would have more than one mariadb instance on my server...

I hope someone can fix it to make it more secure..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions