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

--network=none does nothing #4227

Closed
SpecLad opened this issue Sep 10, 2022 · 0 comments · Fixed by #4229
Closed

--network=none does nothing #4227

SpecLad opened this issue Sep 10, 2022 · 0 comments · Fixed by #4229

Comments

@SpecLad
Copy link

SpecLad commented Sep 10, 2022

Description

The --network=none flag seems to have no effect when used with buildah build.

Steps to reproduce the issue:

  1. Create a test.containerfile file with the following contents:
FROM docker.io/curlimages/curl

RUN curl -I https://www.yahoo.com/
  1. Run buildah build --network=none -f test.containerfile.

Describe the results you received:
The curl invocation succeeds.

Describe the results you expected:
The curl invocation (and the build along with it) should fail.

Output of rpm -q buildah or apt list buildah:

buildah/jammy,now 1.23.1+ds1-2 amd64 [installed]

Output of buildah version:

Version:         1.23.1
Go Version:      go1.17
Image Spec:      1.0.1
Runtime Spec:    1.0.2-dev
CNI Spec:        0.4.0
libcni Version:
image Version:   5.16.0
Git Commit:
Built:           Thu Jan  1 03:00:00 1970
OS/Arch:         linux/amd64
BuildPlatform:   linux/amd64

This version is pretty old, however, I can still reproduce the issue with the latest Git commit (9e2b0e2).

Output of podman version if reporting a podman build issue: N/A

Output of cat /etc/*release:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=jammy

Output of uname -a:

Linux Freezie 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

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

cat: /etc/containers/storage.conf: No such file or directory
rhatdan added a commit to rhatdan/buildah that referenced this issue Sep 11, 2022
Fixes: containers#4227

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/buildah that referenced this issue Sep 12, 2022
Fixes: containers#4227

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/buildah that referenced this issue Sep 12, 2022
Fixes: containers#4227

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/buildah that referenced this issue Sep 15, 2022
Fixes: containers#4227

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/buildah that referenced this issue Sep 16, 2022
Fixes: containers#4227

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/buildah that referenced this issue Sep 17, 2022
Fixes: containers#4227

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant