User Tools

Site Tools


Sidebar

software:debian_podman

Podman on Debian Buster

echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' \
  > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L \
  https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/Release.key \
  | sudo apt-key add -

sudo apt-get update -qq
sudo apt-get -qq -y install podman

podman search fedora
podman pull docker.io/library/httpd
podman images
podman run -dt -p 8080:80/tcp docker.io/library/httpd
curl http://localhost:8080
podman stop ..

podman pull fedora
podman run -dt fedora
podman exec -it pedantic_galileo /bin/bash

PixelFed

podman pull fedora
podman run -dt --name pixel -p 8123:8000/tcp fedora
podman exec -it pixel /bin/bash

dnf install -y procps-ng iproute nginx postgresql-server.x86_64 \
  php-bcmath php-ctype php-curl php-exif php-iconv php-intl \
  php-json php-mbstring php-openssl php-tokenizer php-xml php-zip \
  redis screen ImageMagick jpegoptim optipng pngquant composer \
  git-core which unzip

dnf install \
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
  https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
dnf install -y ffmpeg
  
nohup /usr/bin/redis-server /etc/redis.conf &

# do as user
git clone https://github.com/pixelfed/pixelfed
cd pixelfed
composer install
php artisan install
php artisan serve --host 10.88.0.9

Psql

podman pull postgres:12.0
podman run --name psql -e POSTGRES_PASSWORD=password -p 5433:5432/tcp \
  -d docker.io/library/postgres:latest
# podman exec -it psql psql -U postgres
psql -h 127.0.0.1 -p 5433 -U postgres
software/debian_podman.txt ยท Last modified: 2020/09/11 10:36 by chris