以下の内容はhttps://www.k-hitorigoto.online/entry/2021/07/07/080000より取得しました。


docker-composeでPythonを起動したらすぐ終わってしまった(tty: trueが必要)

docker-composeでPythonを起動したらすぐ終わってしまったので対処したメモです。

確認環境

PS C:\Users\hoge\Documents\> docker --version
Docker version 20.10.6, build 370c289

対処方法

以下を追加する

tty: true

docker-compose.ymlの例

version: '3'

services:

  python3:
    restart: always
    image: python:3.8
    tty: true
    container_name: 'python38'
    volumes:
      - .:/tmp
    working_dir: /tmp

参考にしました




以上の内容はhttps://www.k-hitorigoto.online/entry/2021/07/07/080000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14