//show images docker images //show volumes docker volume ls //run docker container from image with attachd volume //mongodb_dm - volume name //mongo - container name docker run -d --name mongo -v mongodb_dm:/data/db -p 27017:27017 mongo:latest
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter