Spryker in Docker - Troubleshooting
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
when running the docker/sdk up console command, you get an error similar to this:
Error response from daemon: Bad response from Docker engine
then
- Make sure Docker demon is running.
-
Run docker/sdk up again.
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
when running the docker/sdk up console command, you get an error similar to this:
ERROR: for nginx_frontend Cannot start service nginx_frontend: driver failed programming external connectivity on endpoint spryker_nginx_frontend_1 (e4fdb360f6c9a3243c0a88fa74f8d377325f65b8cd2340b2dacb51377519c1cf): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
then
-
Check what process occupies the port:
sudo lsof -nPi:80 | grep LISTEN
-
Stop the process or make it use a different port.
-
Run docker/sdk up again.
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
when
you get an error similar to this after running docker/sdk up:
docker: Error response from daemon: Conflict. The container name "/data-sync" is already in use by container "47dd708a7a7f9550390432289bd85fe0e4491b080748fcbba7ddb3331de2c7e7". You have to remove (or rename) that container to be able to reuse that name.
then
- Run docker-sync clean
- Run docker/sdk up again.
when
you get an error similar to this:
Unable to find image "eugenmayer/unison:hostsync_@.2' Locally
docker: Error response from daemon: manifest for eugenmayer/unison:hostsync_@.2 not found: manifest unknown: manifest unknown.
then
update docker-sync:
gem install docker-sync
![Closed](../../Skins/Default/Stylesheets/Images/transparent.gif)
- Make sure your IDE is listening to the 9000 port.
- Get into any application container:
$ docker exec -i spryker_zed_1 bash
- Check that xdebug extension is active:
$ docker/sdk cli php -m
- Check if the host is accessible from the container:
$ nc -zv ${SPRYKER_XDEBUG_HOST_IP} 9000
when
PHP xdebug extension is not active
then
Exit the container and run sdk restart -x
when
nc command does not give any output.
then
when
nc command tells that the port is opened.
then
Exit the container. Check what process occupies the port by running the command, and make sure it is your IDE:
sudo lsof -nPi:9000 | grep LISTEN
See also:
Last review date: Aug 06, 2019