ERROR: In file './docker-compose.yml', service 'command' must be a mapping not a string. の解消法
auです。
Dockerを起動するときのオプションでステージングしようと思っていろいろ試しています。
その際に、docker-compose.ymlにcommandを仕込んだ時にエラーに見舞われました。
こんなやつです。
ERROR: In file './docker-compose.yml', service 'command' must be a mapping not a string.
ファイルの中身
version: "3.7" services: app: environment: ENV: test stdin_open: true tty: true command: pytest ../test/module_test/
犯人
犯人はインデントでした。
appの中に入れてあげれば問題なく実行できました。
version: "3.7" services: app: environment: ENV: test stdin_open: true tty: true command: pytest ../test/module_test/
めちゃめちゃ単純なミスでした。