Skip to content

Instantly share code, notes, and snippets.

@backslash112
Created May 16, 2018 14:24
Show Gist options
  • Select an option

  • Save backslash112/c8fe248556051ea4def2845d0cc87d47 to your computer and use it in GitHub Desktop.

Select an option

Save backslash112/c8fe248556051ea4def2845d0cc87d47 to your computer and use it in GitHub Desktop.
Blog: Start a Remote MySQL Server with Docker quickly
# stop and remove the container and run again:
docker stop mysql4 && docker rm mysql4
docker run - name=mysql1 -e MYSQL_ROOT_HOST=% -p 3306:3306 -d mysql/mysql-server
@rapitivo
Copy link

rapitivo commented Jul 9, 2019

Hi there
Just to point the typing error.
It should be:
docker run  --name=mysql1 -e MYSQL_ROOT_HOST=% -p 3306:3306 -d mysql/mysql-server

@eelectron
Copy link

Not working for me
`prashantsingh@Prashants-MacBook-Air: ~/Documents/Learn/Spring/spring_batch
$ docker run  --name mysql1 -e MYSQL_ROOT_HOST=% -p 3306:3306 -d mysql/mysql-server

unknown flag: --name
See 'docker --help'.
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment