Skip to content

AmosFong1/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker

This is how I launch Docker containers!

1 build docker image

cd ${PATH_TO_DOCKERFILE}
docker buildx build --platform linux/amd64 -t ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${TAG} .
docker push ${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${TAG}

2 pull singularity image file

singularity pull docker://${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${TAG}

3 create container

sh rscript.sh
sh rserver.sh
sh python.sh
sh jupyter_lab.sh

4 local port forwarding

ssh -oHostKeyAlgorithms=+ssh-rsa -N -L ${LOCAL_PORT}:${REMOTE_HOST}:${REMOTE_PORT} amfong@ssh.bcgsc.ca -v

5 access remote service

Open your browser and go to: http://localhost:${LOCAL_PORT}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages