Create Docker Container
抓取 Tensorflow 最新GPU版本:$ docker pull tensorflow/tensorflow:latest-gpu-py3
查看所有 images:$ docker images
確認是否有剛剛抓取的 tensorflow/tensorflow執行 Image 產生 Container:
$ nvidia-docker run --name testensor -e NVIDIA_VISIBLE_DEVICES=0,1,2,3 --ipc=host -v ~/joyce/:/workspace -p 7777:8888 -it tensorflow/tensorflow:latest-gpu-py3
# arguments
# --neme [your custom container name]
# -e any environment variable
# -ipc IPC mode for the container [| none | private | shareable | host | container: <_name-or-ID_>]
# -v shared filesystems [host-src:container-dest]
# -p publish a container's port or a range of ports to the host [ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort]
# -it [image id or name]
Docker Usage
啟動 Container:$ docker start [container_name]
刪除 Container:$ docker rm [container_name]
進入 Container:$ docker attach [container_name]
查看所有 Container:$ docker ps -a
查看目前運行中的 Container:$ docker ps
Jupyter Notebook
安裝 Jupyter Notebook:




0 意見:
張貼留言