Skip to content

gobikrishnan-s3141/docker

Repository files navigation

Podman ( a Docker alternative with a daemon-less architecture)

  • run, build, share, deploy, & manage containers with ease   
  • Python, R, and a basic Linux environments for rapid development   
  • syntax is similar to Docker, so it should work with any docker without any issue (replace 'podman' with 'docker')
  • file formats supported: OCI, SIF
  • images in this repo utilized are mostly debian-based. check out Singularity for running containers in HPC environments

Dockerfile structure

command description
FROM pulls a pre-built image <base_image> from docker.io/quay.io
ENV set environment variables
WORKDIR set working directory (usually root directory)
USER create a user with lesser privileges for better securit
COPY copy files into the container
EXPOSE expose specific ports to be exposed (port : 8080)
VOLUME manage volumes for containers
RUN run commands
ENTRYPOINt set entrypoint
CMD set default command to run when container starts

build a container

podman build -t .      
podman build -t pybox -f Py.dockerfile  

for building all containers in this repo at once

podman build -t pybox -f Py.dockerfile && podman build -t rbox -f R.dockerfile && podman build -t serverbox -f server.dockerfile && podman build -t bshbox -f bsh.dockerfile     

(or) using podman-compose (use sudo if necessary)

podman-compose up

run podman images in interactive mode

podman run -it ubuntu:latest /bin/bash 

Replace debian:bookworm-slim with other pre-built official tags found here, if you need any specific images

Never run into "It works on my machine!" moment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published