docker exec -it [container-id] bash
docker cp :/file/path/within/container /host/path/target
sudo docker update --restart=no <container_id> to update --restart flag of the container.
Now you can stop the container.
docker exec -it [container-id] bash
docker cp :/file/path/within/container /host/path/target
sudo docker update --restart=no <container_id> to update --restart flag of the container.
Now you can stop the container.