R example: Dockerfile, CHTC submit file, CHTC shell script
pytorch-cuda example: Dockerfile, environment configuration, CHTC submit file, CHTC shell script
pytorch-cuda example 2: Dockerfile, environment configuration, CHTC submit file, CHTC shell script
# cd to the directory containing a `Dockerfile`
docker build -t {repository name}:{tag} .
# docker build -t xinranmiao/r_example:20221006 .
# test this image
docker run -it --rm=true {repository name}:{tag} /bin/bash
# docker run -it --rm=true xinranmiao/r_example:20221006 /bin/bash
# push
docker push {repository name}:{tag}
# list all images
docker image ls
# remove an image
docker image rm -f {repository name}:{tag}
# docker image rm -f xinranmiao/gpu_python_example:20221006
# or, find the tag id using `docker image ls`, and
docker image rm -f {tagid}
# docker image rm -f 92dbf6ddeabc
# remove unused data
docker system prune