A well-packed PyTorch development runtime, CUDA ready.
5.2K
Consult Github Repo for latest README.
A well-packed PyTorch development runtime, CUDA ready.
| Configurations | |
|---|---|
| Base Image | nvidia/cuda |
| Container Name | awesome-pytorch |
| Volumes | $AWESOME_HOST |
| Network | |
| Publish Port | |
| Working Directory | /root |
docker build \
--build-arg "UBUNTU_VERSION=18.04" \
--build-arg "CUDA_VERSION=11.0" \
--build-arg "PYTHON_VERSION=3.8" \
--build-arg "PYTORCH_VERSION=1.7.0" \
--tag tomy0000000/pytorch
# Information about container
export AWESOME_USER="tomy0000000" # username inside container
export AWESOME_PASSWORD=$(openssl rand -base64 48) # password for services
export AWESOME_HOST="bubble-pack-plunge" # container name & hostname
export AWESOME_VOLUME="$AWESOME_HOST"
# Create volume
docker volume create $AWESOME_VOLUME
# Spawn container
docker run -d \
--gpus="all" \
--name="$AWESOME_HOST" \
--hostname="$AWESOME_HOST" \
--env="AWESOME_USER" \
--env="AWESOME_PASSWORD" \
--publish="127.0.0.1:$(shuf -i 0-65535 -n 1):22" \
--volume="$AWESOME_VOLUME:/home/$AWESOME_USER" \
tomy0000000/pytorch
# Remove container
docker rm $AWESOME_HOST
# Remove volumes
docker volume rm $AWESOME_VOLUME
curl, git, sudo, wget from aptContent type
Image
Digest
Size
5.3 GB
Last updated
over 5 years ago
docker pull tomy0000000/pytorch:1.7.1-cu11.0-cudnn8-py3.8-ubuntu18.04