"Unable to mount a file from test host into a running container" on Mac M1

オープン
#4,168 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, java
領域
devops, testing

調査の方向性

まず、Docker 3.4.0 と testcontainers 1.15.3 を使用する Mac M1 で localstack テストと KPL producer シナリオを再現し、その後、動作する bind-mount を使用した docker run の例と比較します。テストホストのファイルマウント設定を追跡します。テストがマウント警告なしで実行され、Kinesis シナリオが期待どおりに動作すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I get the above error but I am able to start a container with a bind mount. For example this work on my machine:

docker run -d \
  -it \
  --name devtest \
  --mount type=bind,source="$(pwd)"/target,target=/app \
  nginx:latest

But running a test with testcontainers localstack I get :

Unable to mount a file from test host into a running container. This may be a misconfiguration or limitation of your Docker environment. Some features might not work.

Docker version 3.4.0
testcontainers version: 1.15.3
Mac M1

Any ideas?

I initially experienced this issue when trying to run a test with KPL producer sending messages to Kinesis:


⚠︎ Unable to mount a file from test host into a running container. This may be a misconfiguration or limitation of your Docker environment. Some features might not work.
[kpl-daemon-0003] ERROR com.amazonaws.services.kinesis.producer.LogInputStreamReader - [0x00006c9a][0x00000003061dc000] [error] [shard_map.cc:154] Shard map update for stream "invalid-stream" failed. Code: ResourceNotFoundException Message: Stream invalid-stream under account 000000000000 not found. with address : 127.0.0.1; retrying in 1000 ms
主要言語
Java
スター
8.7k
フォーク
1.9k
平均マージ
2日 17時間
マージ済み PR(30日)
9

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

testcontainers/testcontainers-java のほかの issue

testcontainers/testcontainers-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。