0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Dockerでウェブアプリ開発する時の設定

Last updated at Posted at 2019-10-29

メモ

docker run --name hoge -p 127.0.0.1:8000:8000 --rm -it -v $(pwd)/src:/home/hoge/src django
  • django: イメージ名
  • -p: ポートフォーワード. これが無いと外部(ブラウザ)からアクセスできない
  • -v: ローカルのディレクトリをコンテナにマウント. ウェブアプリに限らず開発時はこれをつける. でないと, ローカルで編集したプログラムファイルとかがコンテナに即時反映されない
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?