DEV Community

Vuelancer
Vuelancer

Posted on

Podman - Simple Alternative for Docker

I started to learn about podman, so just created this blog to track my learning and share it with the dev community. I might make some mistakes in the blog post, but I will update the blog regularly

Introduction

Podman is a container engine that provides a similar experience to Docker but offers several advantages, including:

  • Podman can run without root privileges, enhancing security.
  • Podman doesn't require a central daemon, making it more lightweight and easier to manage.
  • Built-in support for pods: Podman natively supports pods, a grouping mechanism for containers.

Example dockerfile to create node server in a container

FROM node:18-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "start"]

Enter fullscreen mode Exit fullscreen mode

Top comments (0)