DockerWellWCDS·Apr 1, 2024·1 min readCopy a file to a docker container docker cp fileName.json mongodb1:/fileName.json Connect on the container terminal docker exec -it mongodb1 /bin/sh Docker Share this