LoginSignup
23
20

More than 5 years have passed since last update.

動作中のDockerコンテナとホストでファイルをやりとりしたい

Last updated at Posted at 2014-12-05

2016/12/05追記

docker cpがどっちもイケるようになったのでこの記事の情報量は0です

動作中のコンテナ内からファイルを持ってくるには

docker cp ${container_id}:${file_path} ${host_path}

動作中のコンテナ内へファイルを持っていくには

docker exec -i ${container_id} /bin/bash -c 'cat >file' <file

これである程度なんとかなる。

っていうのを Copying files from host to docker container で発見したのであった。

23
20
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
23
20