• notice
  • Congratulations on the launch of the Sought Tech site

Docker-compose error Unsupported config option for services service: 'db'

When using docker-compose for up -d installation, it prompts an error: Unsupported config option for services service: 'db', there is a db item in the docker-compose.yml configuration file, using the mysql5.7 image package for service installation, But there is no problem, but when it is executed, the above error is reported. My docker-compose was just installed, and the previous version of docker-compose was older.

#Install the updated version docker-compose 1.3.0
root@unps:/opt/docker-compose/# curl -L https://github.com/docker/compose/releases/download/1.3.0/docker-compose-`uname -s`-`uname -m` > ./docker-compose
root@unps:/opt/docker-compose/# chmod +x /usr/local/bin/docker-compose
# version view
root@unps:/opt/docker-compose/# docker-compose --version
docker-compose version: 1.3.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
# run install
root@unps:/opt/docker-compose/# docker-compose up -d
Unsupported config option for services service: 'db'

    Through the above output, pay attention to the value of CPython version: in one place. From here, it can be seen that python is still using version 2.7. It is speculated that this is the problem. In the end, the problem was solved by updating the python version in docker-compose. The docker-compose file can be extracted from the Baidu cloud disk in this article. See the address: https://zhuanlan.zhihu.com/p/250341990 But it is also a bit strange, I installed docker-compose through pip3 --default-timeout=1000 install docker-compose at the beginning, it should use python3 is.

Tags

Technical otaku

Sought technology together

Related Topic

1 Comments

author

buy atorvastatin 20mg online cheap & lt;a href="https://lipiws.top/"& gt;buy generic atorvastatin 20mg& lt;/a& gt; atorvastatin 10mg us

Kbqups

2024-03-07

Leave a Reply

+