Skip to content

docs/mysql: ambiguous --network option in "connect to mysql" section.  #1984

Closed
@ghost

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

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