Reputation: 23
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.
Any idea what is happening?
Upvotes: 0
Views: 4306
Reputation: 4123
Simply replace _
with -
:
docker exec -it laradock-mysql-1 mysql -uroot -proot <../database/scripts/create_database.sql
Upvotes: 1