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

docker runで今のディレクトリにあるものをコンテナ内に引っ張って来たい時にやるやつ

Posted at

擦り倒されているネタだけど、いつも忘れるので備忘録として。。

docker run -it --remove -v `pwd`:/app ubuntu:latest bash

-vオプションで今いるディレクトリを指定して、/appディレクトリに入れてるだけですね。

膨大な量入れようとすると変なことになるかもしれないので、その辺は用法容量を正しくお使いください。

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