## build image docker build -f ./Dockerfile . ## add a tag docker build -t user/repo:tag . ## push local docker image to the remote repo docker tag <md5_of_docker_image> user/repo:tag docker push user/repo:tag ## one line to build an image with predefined name docker build -t user/repo:tag -f Dockerfile .
## run the docker docker run -i -t user/repo:tag
## manage the images ### list all the images docker images ### remove a specific image, might need to add -f to force the operation docker image rm <md5_of_image>
## export docker save hifibio/pipeline:scRNAseq_nf_v1.06 | gzip -c > scRNAseq_nf_v1.06.tar.gz
## import gunzip -c scRNAseq_nf_v1.06.tar.gz | docker import ## or import after gunzip docker import scRNAseq_nf_v1.06.tar