How I can install podman-system-service in ubuntu

Asked by diegoturcios

Hi, I'm installing podman with the following steps:
source /etc/os-release
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${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

Language:
English Edit question
Status:
Expired
For:
Ubuntu libpod Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
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
podman:
  Installed: 100:3.0.1-2
  Candidate: 100:3.0.1-2
  Version table:
 *** 100:3.0.1-2 500
        500 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 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.

Revision history for this message
diegoturcios (diegoturcios) said :
#3

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

https://github.com/containers/podman/issues/9921#issuecomment-812412306

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

If you run:

podman info

Is it installed OK?

Source
https://www.vultr.com/docs/how-to-install-and-use-podman-on-ubuntu-20-04

Revision history for this message
Launchpad Janitor (janitor) said :
#5

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