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

How to run Buildah on Windows Subsystem for Linux? #1695

Closed
devlocalca opened this issue Jun 28, 2019 · 2 comments
Closed

How to run Buildah on Windows Subsystem for Linux? #1695

devlocalca opened this issue Jun 28, 2019 · 2 comments

Comments

@devlocalca
Copy link

Description
On my Windows 10 Pro system, I want to run Buildah & Podman.

I would like to choose either CentoOS or RHEL 8 from the Windows Store WSL selections, but they are not there. I have choices of:

1. SUSE Enterprise Linux 12
2. Ubuntu 18
3. Kali Linux
4. Alpine
5. Debian
6. +others,

but NO CentOS or RHEL8, so I choose Ubuntu, and can successfully install buildah and podman, I had to lookup the commands to install, as I mostly use CentOS/RHEL 8.

I get all sorts of error messages, buildah does not work there, what am I missing?
Can someone on the Buildah project, install Ubuntu WSL, and see the error messages?

Steps to reproduce the issue:

1.  On Windows 10 - install *Ubuntu WSL*
2.  Install buildah & podman
3.  Try to build a container
4.  See error messages

I installed buildah, using these commands:

#!/bin/bash
sudo apt-get update -qq
sudo apt-get install -qq -y software-properties-common
sudo add-apt-repository -y ppa:projectatomic/ppa
sudo apt-get update -qq
sudo apt-get -qq -y install buildah

I then ran this bash script:

#!/bin/bash
container=$(buildah from fedora)

Describe the results you received:

Error during unshare(CLONE_NEWUSER): Invalid argument
ERRO[0000] error parsing PID "": strconv.Atoi: parsing "": invalid syntax
ERRO[0000] (unable to determine exit status)

Describe the results you expected:

I fully expected a container image to be created

Output of rpm -q buildah or apt list buildah:

$ apt list buildah
Listing... Done
buildah/bionic,now 1.9.0-1~dev~ubuntu18.04~ppa17 amd64 [installed]

Output of buildah version:

$ buildah version
Version:         1.9.0-dev
Go Version:      go1.10.4
Image Spec:      1.0.0
Runtime Spec:    1.0.0
CNI Spec:        0.4.0
libcni Version:
Git Commit:
Built:           Thu May 30 11:39:16 2019
OS/Arch:         linux/amd64

Output of podman version if reporting a podman build issue:

$ podman version
Version:            1.4.0
RemoteAPI Version:  1
Go Version:         go1.10.4
OS/Arch:            linux/amd64

Output of cat /etc/*release:

$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Output of uname -a:

$ uname -a
Linux hannah 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

Output of cat /etc/containers/storage.conf:

$ cat /etc/containers/storage.conf
# storage.conf is the configuration file for all tools
# that share the containers/storage libraries
# See man 5 containers-storage.conf for more information

# The "container storage" table contains all of the server options.
[storage]

# Default Storage Driver
driver = "overlay"

# Temporary storage location
runroot = "/var/run/containers/storage"

# Primary read-write location of container storage
graphroot = "/var/lib/containers/storage"

[storage.options]
# AdditionalImageStores is used to pass paths to additional read-only image stores
# Must be comma separated list.
additionalimagestores = [
]

# Size is used to set a maximum size of the container image.  Only supported by
# certain container storage drivers (currently overlay, zfs, vfs, btrfs)
size = ""

# OverrideKernelCheck tells the driver to ignore kernel checks based on kernel version
override_kernel_check = "true"
@rhatdan
Copy link
Member

rhatdan commented Jun 28, 2019

There is an effort to get this running for Podman right now. @baude Could you comment on this.
Not sure we are going to put the effort into Buildah, since podman build should satisfy most of the needs.

Discussion is happening here. containers/podman#3288

Lets keep the conversation there for now, and once we have it working for Podman we can discuss making Buildah work.

@rhatdan
Copy link
Member

rhatdan commented Aug 4, 2020

We recommend you do this with Podman,

@rhatdan rhatdan closed this as completed Aug 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants