I have successfully installed Docker, pulled newman docker image and run newman commands on the image just to make sure that all works. Then I successfully run a collection using the newman image:
docker run -t postman/newman:ubuntu run https://www.getpostman.com/collections/8a0c9bc08f062d12dcda
When it comes to Running Local Collection Files in Docker I always get error. The command I run is:
C:\Users\martinsv>docker run -v ~/collections:/etc/newman -t postman/newman:ubuntu run "Kwaki.collection.postman_collection.json"
Then I get this error:
error: collection could not be loaded unable to read data from file "Kwaki.collection.postman_collection.json" ENOENT: no such file or directory, open 'Kwaki.collection.postman_collection.json'
This is the directory that I created in my disk:
C:\Users\martinsv>cd collections C:\Users\martinsv\collections>dir Volume in drive C is OSDisk Volume Serial Number is 72C8-6C0A Directory of C:\Users\martinsv\collections 09/02/2021 19:24 <DIR> . 09/02/2021 19:24 <DIR> .. 09/02/2021 19:24 10,093 Kwaki.collection.postman_collection.json 08/02/2021 11:00 10,093 Kwaki_test.json 08/02/2021 11:03 507 Postman_environment.json 3 File(s) 20,693 bytes 2 Dir(s) 96,579,678,208 bytes free
Please anyone can help? I spent hours to figure it out without success.
Thanks a lot