美文网首页
Docker Tips and Tricks

Docker Tips and Tricks

作者: ELVENITO | 来源:发表于2019-09-29 21:27 被阅读0次

    未经许可请勿转载。
    Please do not reprint this article without permission.

    Useful Docs

    nvidia-docker

    Dockerfile

    Common Usage

    • Basic commands
    docker build -t docker-repository/image-name:tag /dir/where/Dockerfile/is/
    # docker build -t registry.k8s.imagedt.online:15781/labeler-task-tools:cuda9 .
    docker push docker-repository/image-name:tag
    # docker push registry.k8s.imagedt.online:15781/labeler-task-tools:cuda9
    docker pull docker-repository/image-name:tag
    # docker pull registry.k8s.imagedt.online:15781/labeler-task-tools:cuda9
    docker commit {container ID} docker-repository/image-name:tag
    
    • Initiate a container (with R/W layer on top of an image)
    nvidia-docker run -it --rm -v /volume:/volume --add-host host:127.0.0.1 docker-image:tag /bin/bash
    

    相关文章

      网友评论

          本文标题:Docker Tips and Tricks

          本文链接:https://www.haomeiwen.com/subject/zbpqpctx.html