Make sure your Dockerfile is in the current directory.
docker buildx build --platform linux/amd64 -t <username>/<software>:<version> .Example:
docker buildx build --platform linux/amd64 -t sjiang/bwa:0.7.17 .Login:
docker loginPush:
docker push <username>/<software>:<version>Pull:
docker pull <username>/<software>:<version>Run interactively:
docker run -it --name <container_name> <username>/<software>:<version> /bin/bashExample:
docker run -it --name bwa_test sjiang/bwa:0.7.17 /bin/bashPull directly from Docker Hub:
singularity pull <software>-<version>.sif docker://<username>/<software>:<version>Example:
singularity pull bwa-0.7.17.sif docker://sjiang/bwa:0.7.17