You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run the docker pull command to get the centos with mariadb image, however when I run the command to create a container from that image the container dosen't seems to work.
First the issue was related to the port 3306 being on use since I already had mysql installed and it was using that port however, after setting it to "inactive" the issue with the port being on use dismissed.
But now , I do not now the reason, when I create a container following the page example:
docker run --name=mariadb -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD= /mariadb
The container that it creates gets "Exited" Immediately , even if afterwards I run a docker start It gets Exited within 2 seconds.
The text was updated successfully, but these errors were encountered:
I ran the container interactively, and when I tried to run
bash -x /docker-entrypoint.sh mysqld
I got this:
+ echo 'Running mysql_install_db ...'
Running mysql_install_db ...
+ mysql_install_db --datadir=/var/lib/mysql
Neither host 'a6ab98f90d96' nor 'localhost' could be looked up with
'/usr/libexec/resolveip'
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option
I hope this helps.
I'm not sure how to add the correct hostname
Also the instructions to run the container like this:
docker run --name=mariadb -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password /mariadb55 true
doesn't make sense, because the docker-entrypoint.sh will simply exec the passed in command, which will exec true which will exit immediately?
I've run the docker pull command to get the centos with mariadb image, however when I run the command to create a container from that image the container dosen't seems to work.
First the issue was related to the port 3306 being on use since I already had mysql installed and it was using that port however, after setting it to "inactive" the issue with the port being on use dismissed.
But now , I do not now the reason, when I create a container following the page example:
docker run --name=mariadb -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD= /mariadb
The container that it creates gets "Exited" Immediately , even if afterwards I run a docker start It gets Exited within 2 seconds.
The text was updated successfully, but these errors were encountered: