LoginSignup
0
1

More than 3 years have passed since last update.

docker runした日(注意すること)

Last updated at Posted at 2020-04-14

以下コマンドで起動する

docker run -p 8888:8888 -v ~/dev/ds_python:/work --name my-lab 520b56985511 (image ID)

注意点

  1. ポートを指定する(-p コンテナのポート:ホストのポート)
  2. ファイルシステムのマウント(-v コンテナの作業フォルダ:dockerfileで作ったフォルダ)
  3. コンテナ名を命名(--name 任意)

参考

0
1
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
1