How I can install podman-system-service in ubuntu

Asked by diegoturcios on 2021-04-01

Hi, I'm installing podman with the following steps:
source /etc/os-release
sudo sh -c "echo 'deb${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv${VERSION_ID}/Release.key -O- | sudo apt-key add -
sudo apt-get update -qq
sudo apt-get -qq install podman
podman info

When trying to run this command
sudo systemctl enable --now podman.socket

Then when running this command:

sudo curl -H "Content-Type: application/json" --unix-socket /var/run/docker.sock http://localhost/_ping
curl: (7) Couldn't connect to server

Not sure which package i'm missing

Question information

English Edit question
Ubuntu libpod Edit question
No assignee Edit question
Last query:
Last reply:
20 hours ago
Manfred Hampl (m-hampl) said : #1

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid
apt-cache policy podman
podman version
systemctl status podman.socket

diegoturcios (diegoturcios) said : #2

uname -a
Linux ip-172-31-13-201 5.4.0-1038-aws #40-Ubuntu SMP Fri Feb 5 23:50:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: foca

apt-cache policy podman
  Installed: 100:3.0.1-2
  Candidate: 100:3.0.1-2
  Version table:
 *** 100:3.0.1-2 500
        500 Packages
        100 /var/lib/dpkg/status

podman version
Version: 3.0.1
API Version: 3.0.0
Go Version: go1.15.2
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64

systemctl status podman.socket
● podman.socket - Podman API Socket
     Loaded: loaded (/lib/systemd/system/podman.socket; disabled; vendor preset: enabled)
     Active: active (listening) since Fri 2021-04-02 23:00:21 UTC; 2s ago
   Triggers: ● podman.service
       Docs: man:podman-system-service(1)
     Listen: /run/podman/podman.sock (Stream)
     CGroup: /system.slice/podman.socket

Apr 02 23:00:21 ip-172-31-13-201 systemd[1]: Listening on Podman API Socket.

diegoturcios (diegoturcios) said : #3

According to podman community, there's a podman-docker package in Fedora, is there something similar in ubuntu?

If you run:

podman info

Is it installed OK?


Launchpad Janitor (janitor) said : #5

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.