testcontainers / testcontainers/testcontainers-java
"Unable to mount a file from test host into a running container" on Mac M1
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 2g 17h
- PR unite (30g)
- 9
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il test localstack e lo scenario del produttore KPL su un Mac M1 con Docker 3.4.0 e testcontainers 1.15.3, quindi confrontalo con l’esempio funzionante di docker run con bind-mount. Traccia la configurazione del montaggio dei file sull’host di test; il lavoro è completato quando il test viene eseguito senza l’avviso relativo al mount e lo scenario Kinesis funziona come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, java
- Ambito
- devops, testing
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100