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

buildah bud --dns* flag may conflict with --network #1736

Closed
QiWang19 opened this issue Jul 22, 2019 · 2 comments
Closed

buildah bud --dns* flag may conflict with --network #1736

QiWang19 opened this issue Jul 22, 2019 · 2 comments

Comments

@QiWang19
Copy link
Collaborator

Description
Mirror issue from libpod containers/podman#3553
Using --dns* and --network together can have conflicts if using --dns* with
--network 'container:<name|id>'
--network 'none'

Steps to reproduce the issue:

  1. buildah build-using-dockerfile and buildah from have --dns* and --network flags. Will this have conflict?

Output of rpm -q buildah or apt list buildah:

buildah-1.9.0-1.git00eb895.fc30.x86_64

Output of buildah version:

$ buildah version
Version:         1.9.3-dev
Go Version:      go1.12.6
Image Spec:      1.0.1
Runtime Spec:    1.0.1-dev
CNI Spec:        0.4.0
libcni Version:  v0.7.0-rc2
Git Commit:      555b5a50
Built:           Mon Jul 22 15:27:19 2019
OS/Arch:         linux/amd64
@TomSweeneyRedHat TomSweeneyRedHat changed the title buildah bud --dns* flag may conflit with --network buildah bud --dns* flag may conflict with --network Jul 22, 2019
@mheon
Copy link
Member

mheon commented Jul 23, 2019

Background here: we noticed this one while doing some updates to Podman's --network flag. Podman matches Docker's syntax (none, bridge, host, container:$ID). Buildah, however, does not support this syntax - most notable, buildah bud --network container doesn't point to another container, but instead seems to just set up a CNI network for the container.

It's sort of confusing that we have two tools with mostly identical CLI syntax disagreeing completely on this flag.

@rhatdan
Copy link
Member

rhatdan commented Jul 24, 2019

@nalind WDYT?

@rhatdan rhatdan self-assigned this Aug 4, 2020
@rhatdan rhatdan closed this as completed Oct 7, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 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

3 participants