Situation
Cannot copy SNOMED zip file into docker container with docker cp.
OpenEMR Version
5.0.2 patch 1
Browser:
N/A
Operating System
Ubuntu 18.04
Used 5.0.2 latest docker yml file.
https://hub.docker.com/r/openemr/openemr/
Logs
First I created an account with an account with UMLS
https://utslogin.nlm.nih.gov/cas/login
Then I downloaded the RxNorm Zip file and SNOMEDCT US edition
I was able to copy the RxNorm File over with out issue using:
sudo docker cp RxNorm_full_12022019.zip âellisre1a_openemr_1â:/var/www/localhost/htdocs/openemr/contrib/rxnorm/RxNorm_full_12022019.zip
When I do the same with the snomed file I get an error. Where ellisre1a_openemr_1 is the docker container name.
Command I tried
sudo docker cp âSnomedCT_USEditionRF2_PRODUCTION_20190901T120000Z.zipâ âellisre1a_openemr_1â:/var/www/localhost/htdocs/openemr/contrib/snomed/âSnomedCT_USEditionRF2_PRODUCTION_20190901T120000Z.zipâ
Response
âdocker cpâ requires exactly 2 arguments.
See âdocker cp --helpâ.
Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
Copy files/folders between a container and the local filesystem
I tried again with backtics but that didnât work either.
sudo docker cp SnomedCT_USEditionRF2_PRODUCTION_20190901T120000Z.zip
âellisre1a_openemr_1â:/var/www/localhost/htdocs/openemr/contrib/snomed/SnomedCT_USEditionRF2_PRODUCTION_20190901T120000Z.zip
Response
sh: 1: SnomedCT_USEditionRF2_PRODUCTION_20190901T120000Z.zip: not found
sh: 1: SnomedCT_USEditionRF2_PRODUCTION_20190901T120000Z.zip: not found
âdocker cpâ requires exactly 2 arguments.
See âdocker cp --helpâ.
Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
Copy files/folders between a container and the local filesystem