Steps I followed for the ubuntu-mongo
image:
- Start Docker by
systemctl start docker
or the desktop application. - Login to ghcr by:
export CR_PAT=GHCR_GIVEN_KEY
echo $CR_PAT | docker login ghcr.io -u furkanakkurt1335 --password-stdin
- Change working directory to the folder with your Dockerfile.
docker build -t ghcr.io/furkanakkurt1335/ubuntu-mongo .
docker push ghcr.io/furkanakkurt1335/ubuntu-mongo:latest
After these steps, you can load the image in a server with Slurm Workload Manager and its plugin named Pyxis installed by the command srun --container-image ghcr.io\#furkanakkurt1335/ubuntu-mongo:latest --pty bash
.