Useful commands of docker

  • run a container from an image
    docker run --name tmp -it nvcr.io/nvidia/pytorch:20.12-py3 /bin/bash
    # -it is short for -t (create a pseudo terminal) and -i (interactive mode)
    
  • initialize a container from an image
    docker run -it -v /tmp/folder:/data --name tmp image:image_tag /bin/bash
    # -v -volume 
    

Questions of docker

Choose volume or mount


<
Blog Archive
Archive of all previous blog posts
>
Next Post
MIT 6.S081 Operating Systems