Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Podman works on desktops and laptops #100

Closed
Zarquan opened this issue Apr 29, 2020 · 13 comments
Closed

Check Podman works on desktops and laptops #100

Zarquan opened this issue Apr 29, 2020 · 13 comments
Assignees

Comments

@Zarquan
Copy link
Collaborator

Zarquan commented Apr 29, 2020

Check we can deploy Podman on our desktops and laptops.

  • Verify that Podman works as expected and is compatible with our deployments.
@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

My desktop and laptop are both running Fedora 31.

Podman runs fine, although need to add the z option to volume mounts to grant the appropriate SELinux permissions to the containers.

@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

@stvoutsin Can you check to see if Podman runs OK on your machines.

@stvoutsin
Copy link
Collaborator

@stvoutsin Can you check to see if Podman runs OK on your machines.

@Zarquan I've installed Podman on my local machine (Ubuntu 18.04) with the following instructions:

echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Unstable/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Unstable/Release.key | sudo apt-key add -
# Debian Testing
echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_Testing/Release.key | sudo apt-key add -
# Debian 10
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

I then tried running the openstack client container as:

podman run \
         --rm \
         --tty \
         --interactive \
         --hostname openstacker \
         --volume "${HOME}/clouds.yaml:/root/clouds.yaml" \
         atolmis/openstack-client \
         bash

This seems to work as the container gets fetched and I am taken to the root@openstacker prompt, although I do see the following error:

ERRO[0080] could not find slirp4netns, the network namespace won't be configured: exec: "slirp4netns": executable file not found in $PATH

@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

Did you get the instructions from the Podman site ?
https://podman.io/getting-started/installation.html

@stvoutsin
Copy link
Collaborator

Did you get the instructions from the Podman site ?
https://podman.io/getting-started/installation.html

Yep, that's what I used to install

@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

Additional information
containers/podman#1234

@stvoutsin
Copy link
Collaborator

stvoutsin commented Apr 29, 2020

sudo apt install slirp4netns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
slirp4netns : Depends: libslirp0 (>= 4.1.0-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt install libslirp0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libslirp0 : Depends: libc6 (>= 2.28) but 2.27-3ubuntu1 is to be installed
Depends: libglib2.0-0 (>= 2.57.2) but 2.56.4-0ubuntu0.18.04.6 is to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.27-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Looks like the is a required package missmatch, where ubuntu claims to have the latest, but libslirp0 requires newer versions.

@stvoutsin
Copy link
Collaborator

Will look into this more tomorrow

@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

No problem, not urgent. Just all the examples I'm creating use podman rather than docker, so need to check I'm not breaking anything.

@Zarquan
Copy link
Collaborator Author

Zarquan commented Apr 29, 2020

I expect there may be a few issues with compose, and almost certainly issues with swarm.

@Zarquan
Copy link
Collaborator Author

Zarquan commented Jul 8, 2020

@stvoutsin Could you run another test to see if Ubuntu have updated their packages ?

@Zarquan
Copy link
Collaborator Author

Zarquan commented Sep 8, 2020

This is no longer an issue.
Everything we use is using Podman and Buildah.

@Zarquan Zarquan closed this as completed Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants