Dockerコンテナへファイルをコピーする3つの方法
Dockerコンテナにファイルをコピーするには、docker cpコマンドを使用します。
例えば、ローカルファイルfile.txtをcontainer1というコンテナの/path/to/destinationディレクトリにコピーするには、次のコマンドを使用します。
docker cp file.txt container1:/path/to/destination
file.txtファイルをcontainer1コンテナーの/path/to/destinationディレクトリにコピーします。