This is how I launch Docker containers!
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}
singularity pull docker://${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${TAG}
sh rscript.sh
sh rserver.sh
sh python.sh
sh jupyter_lab.sh
ssh -oHostKeyAlgorithms=+ssh-rsa -N -L ${LOCAL_PORT}:${REMOTE_HOST}:${REMOTE_PORT} amfong@ssh.bcgsc.ca -v
Open your browser and go to: http://localhost:${LOCAL_PORT}