dbName) and then storing the archive as the designated file (mongoDumpPath).result string is empty). However, when I copy and paste the mongoDumpCommand string variable and paste it onto the bash shell of the container, it works perfectly. chmod +x /usr/bin/mongodump is in the Dockerfile.