Docker run through bind mount and assign name on container

less than 1 minute read

  • docker run with bind_mount and assign name to the container
    docker run -d -v `pwd`:/whale_test -it --name docker123456 mydocker
    
  • Assign a name to the container
    docker run --name container_name
    

Appendix

Reference

docker run: https://docs.docker.com/engine/reference/commandline/run/

Leave a comment