windowsのパソコンで、ドッカーデスクトップを、インストールしています。
ファイル構成は以下になります。
C:\Users\pcuser\source_code\kensaku_shisaku\searchprog
Dockerfile
requirements.txt
下記のDockerファイルについて、[docker build .]を
行いました。ドッカービルドは正常にできました。
・Dockerfile FROM python:3.10.1-slim-bullseye # Install requirements COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt RUN apt update RUN apt install -y cron COPY ./app /app WORKDIR /app # newrelic用iniファイル自動生成 RUN newrelic-admin generate-config YOUR_LICENSE_KEY newrelic.ini # newrelic用環境変数をセット ENV NEW_RELIC_APP_NAME="search" \ NEW_RELIC_LOG=stdout \ NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=true \ NEW_RELIC_CONFIG_FILE=/app/newrelic.ini \ NEW_RELIC_LICENSE_KEY=YOUR_LICENSE_KEY EXPOSE 80 ・requirements.txt boto3 flask flask-cors grpcio-tools newrelic ptvsd pytz waitress numpy
下記のように、ドッカーイメージを確認して、ドッカーを
走らせてもターミナル上に、何も出ません。
PS C:\Users\pcuser\source_code\kensaku_shisaku\searchprog> docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> edcfc0f328d5 About a minute ago 427MB PS C:\Users\pcuser\source_code\kensaku_shisaku\atnavi-searchfe> docker run edcfc0f328d5
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/10/31 02:16