Skip to content

XinranMiao/docker_chtc_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker_chtc_example

Toy examples

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

Write a Dockerfile

Dockerfile best practices

Create a docker image

# 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} 

Other useful commands

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published