1 Replies - 165 Views - Last Post: 16 May 2019 - 05:38 AM Rate Topic: -----

#1 Alhazred   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 208
  • Joined: 25-July 07

[Laradock] docker-compose works only the first time

Posted 15 May 2019 - 02:57 PM

I'm starting to use Docker with Laravel, so I installed Laradock inside my existing Laravel project following the documentation, every step until the command
docker-compose up -d nginx mysql

the first time the command works and I can use my application.
Then I've used the command

docker-compose stop

running again
docker-compose up -d nginx mysql

I obtain this error
ERROR: for laradock_mysql_1  Cannot start service mysql: error while creating mount source path '/host_mnt/c/xampp/htdocs/laratest/laradock/mysql/docker-entrypoint-initdb.d': mkdir /host_mnt/c/xampp/htdocs/laratest: file exists



I've already tried
docker-compose down
with no luck

why does this happen?
How do I correctly stop Docker and restart again?

P.S.
You see the folder xampp in the path, that is where my projects are, but xampp is not started, so it doesn't have any effect on Docker.

This post has been edited by Alhazred: 15 May 2019 - 11:45 PM


Is This A Good Question/Topic? 0
  • +

Replies To: [Laradock] docker-compose works only the first time

#2 Alhazred   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 208
  • Joined: 25-July 07

Re: [Laradock] docker-compose works only the first time

Posted 16 May 2019 - 05:38 AM

I've figured out the problem.

I started the terminal inside a virtual folder created with a symbolic link, opening the terminal inside the folder which actually contains the project everything is working fine.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1