virxu
virxu

Reputation: 23

Docker Error no such container. But it seems to be okay

First time using Docker for a class proyect.

All my containers have the state 'UP'

And everything seems fine.

But when I try this:

docker exec -it laradock_mysql_1 mysql -uroot -proot <../database/scripts/create_database.sql

It can not find the container. But as you can see in the picture. It seems to be there.

Docker error and config

Any idea what is happening?

Upvotes: 0

Views: 4306

Answers (1)

Saeed
Saeed

Reputation: 4123

Simply replace _ with -:

docker exec -it laradock-mysql-1 mysql -uroot -proot <../database/scripts/create_database.sql

Upvotes: 1

Related Questions