$ MYSQL_HOST=127.0.0.1 # Set the ip address/hostname of your docker host
$ docker run -d -t -p 3306:3306 mogproject/mysql
$ mysql -uroot -h $MYSQL_HOST
mysql> select host, user from mysql.user;
mysql> exit
ssh-user is ssh-usersudo in the container. e.g. $ sudo -s$ docker build -t mogproject/mysql .
Content type
Image
Digest
sha256:9cddc4200…
Size
250.8 MB
Last updated
almost 11 years ago
docker pull mogproject/mysql