While building and starting the container with command
docker-compose up -d
You get following error
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.db: 'healthcheck'
Unsupported config option for services.redis: 'healthcheck'
Solution :
Check your docker-compose version.
docker-compose --version
Your docker-compose has lower version than 1.9.0. Upgrade docker compose using pip install and check docker version in /usr/local/bin/docker-compose.
/usr/local/bin/docker-compose --version
After upgrading if you are getting same issue again, check your docker compose version again using
docker-compose --version
/usr/local/bin/docker-compose --version
If both are different, use upgraded docker-compose with absolute path like
/usr/local/bin/docker-compose up -d
docker-compose up -d
You get following error
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.db: 'healthcheck'
Unsupported config option for services.redis: 'healthcheck'
Solution :
Check your docker-compose version.
docker-compose --version
Your docker-compose has lower version than 1.9.0. Upgrade docker compose using pip install and check docker version in /usr/local/bin/docker-compose.
/usr/local/bin/docker-compose --version
After upgrading if you are getting same issue again, check your docker compose version again using
docker-compose --version
/usr/local/bin/docker-compose --version
If both are different, use upgraded docker-compose with absolute path like
/usr/local/bin/docker-compose up -d
No comments:
Post a Comment