add volume docker compose code example Example: docker volumes copy content CID=$(docker run -d -v hello:/hello busybox true) docker cp $CID:/hello ./