AWS初心者です。
DockerでECS・ECRを利用してデプロイしようとして
「ecs-cli compose up --create-log-groups --cluster-config ec2-tutorial --ecs-profile tutorial-profile」というコマンド打って、コンテナを作成しようとしたのですが、
以下のようなエラーが出て起動できません。
一旦、別のファイルを作成し、公式のチュートリアルにある、docker-compose.ymlとecs-params.ymlを利用したら問題なく起動できました。
エラー文を見る限りimageがないといわれていたので、web:のところにdockerhubにあげた
imageをあげたのですが、エラー文は変わらずでした、
皆様のお力を貸していただけないでしょうか。
よろしくおねがします!
docker-compose.yml
version : '3' services: db: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: root volumes: - ./docker/db/data:/var/lib/mysql ports: - "3306:3306" web: tty: true stdin_open: true build: . image: smilax630/mysong command: /bin/sh -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" volumes: - .:/my_song ports: - "3000:3000" links: - db server: build: context: containers/nginx volumes: - ./nginx/log:/var/log/nginx - public-data:/my_song/public ports: - 80:80 depends_on: - web volumes: public-data: tmp-data: log-data: db-data:
WARN[0000] Skipping unsupported YAML option for service... option name=build service name=server WARN[0000] Skipping unsupported YAML option for service... option name=depends_on service name=server WARN[0000] Skipping unsupported YAML option for service... option name=build service name=web WARN[0000] Skipping unsupported YAML option for service... option name=stdin_open service name=web ERRO[0002] Error registering task definition error="ClientException: Container.image should not be null or empty.\n\tstatus code: 400, request id: 4de06c66-15b4-45c6-a1a8-78cbea896604" family=Mysong ERRO[0002] Create task definition failed error="ClientException: Container.image should not be null or empty.\n\tstatus code: 400, request id: 4de06c66-15b4-45c6-a1a8-78cbea896604" FATA[0002] ClientException: Container.image should not be null or empty. status code: 400, request id: 4de06c66-15b4-45c6-a1a8-78cbea896604
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/26 22:43