Closed

Description
I want to
- create MySql container
- connect to this container from docker
I follow instructions
- to create container
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag
- to connect
docker run -it --network some-network --rm mysql mysql -hsome-mysql -uexample-user -p
The last instruction assumes MySql instance were created with some network. But it wasn't.
Why is there --network some-network
option in last instruction but not something like --link some-mysql
?
Metadata
Metadata
Assignees
Labels
No labels