-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Lets try this again: v2.0.5 backports, round 2 #7363
Merged
openshift-merge-robot
merged 40 commits into
containers:v2.0
from
mheon:lets_try_this_again
Aug 21, 2020
Merged
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
5e50ba3
podman support for IPv6 networks
cb4c5fc
podman.service: use sdnotiy
vrothberg ceae3a9
Fix hang when `path` doesn't exist
jdieter 34f4a89
podman save use named pipe
QiWang19 c14b6c3
Change /sys/fs/cgroup/systemd mount to rprivate
mheon c22ea20
add event for image build
baude 09bd563
Add parameter verification for api creation network
zhangguanzhang c539091
Replace deepcopy on history results
baude 76ae0c9
Enable systemd mode for /usr/local/sbin/init
tiran 7fb53bc
Use set for systemd commands
tiran 66fcafa
Allow specifying seccomp profiles for privileged containers
saschagrunert d4c3365
Ensure WORKDIR from images is created
mheon 32f0c8f
Do not use image CMD if user gave ENTRYPOINT
mheon fc24c0c
Fix handling of working dir
rhatdan 4f34955
Error pass through for more accurate error reporting
ParkerVR 35d2db8
Default .Repository and .Tag values to <none>
jwhonce eff0c29
Unconditionally retrieve pod names via API
mheon a8a3325
[CI:DOCS] BZ1860126 - Fix userns defaults in run man page
TomSweeneyRedHat dbcb6f5
Update release notes for v2.0.5
mheon 23348e7
Ensure DefaultEnvVariables is used in Specgen
mheon 44e5d0c
HACK: Disable build-each-commit
mheon e2a1242
Fix one import path pointing to containers/podman
mheon 579360e
Fix imports for runtime_img.go
mheon 98a4f89
Bump github.com/containers/common to v0.14.7
mheon b216b33
Revert "remove podman system connection"
mheon 7c13b8c
Fix `podman system connection` panic
jwhonce ee956b0
[WIP] Refactor podman system connection
jwhonce 402d002
Unmount c/storage containers before removing them
mheon b5b782f
generate systemd: quote arguments with whitespace
vrothberg d3ef477
fix podman version output to include git commit and builttime
ce1389b
abi: fix detection for systemd
giuseppe 0ef6688
fix podman create/run UTS NS docs
855ce48
Further release notes updates for v2.0.5
mheon 14379d6
remove --latest for all remote commands
baude bcd9b81
Add support for --connection
rhatdan 314813c
Final set of updates to release notes
mheon de75ae2
Fix imports (podman -> libpod for v2.0 branch)
mheon 7fc0fbf
Fix a system test failure
mheon f12f245
Fix a Makefile issue
mheon 7fc3c25
fix pod creation with "new:" syntax followup + allow hostname
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package images | ||
|
||
import ( | ||
"io" | ||
"io/ioutil" | ||
"os" | ||
"path/filepath" | ||
|
||
"github.com/pkg/errors" | ||
"github.com/sirupsen/logrus" | ||
"golang.org/x/sys/unix" | ||
) | ||
|
||
// setupPipe for fixing https://github.com/containers/podman/issues/7017 | ||
// uses named pipe since containers/image EvalSymlinks fails with /dev/stdout | ||
// the caller should use the returned function to clean up the pipeDir | ||
func setupPipe() (string, func() <-chan error, error) { | ||
errc := make(chan error) | ||
pipeDir, err := ioutil.TempDir(os.TempDir(), "pipeDir") | ||
if err != nil { | ||
return "", nil, err | ||
} | ||
pipePath := filepath.Join(pipeDir, "saveio") | ||
err = unix.Mkfifo(pipePath, 0600) | ||
if err != nil { | ||
if e := os.RemoveAll(pipeDir); e != nil { | ||
logrus.Errorf("error removing named pipe: %q", e) | ||
} | ||
return "", nil, errors.Wrapf(err, "error creating named pipe") | ||
} | ||
go func() { | ||
fpipe, err := os.Open(pipePath) | ||
if err != nil { | ||
errc <- err | ||
return | ||
} | ||
_, err = io.Copy(os.Stdout, fpipe) | ||
fpipe.Close() | ||
errc <- err | ||
}() | ||
return pipePath, func() <-chan error { | ||
if e := os.RemoveAll(pipeDir); e != nil { | ||
logrus.Errorf("error removing named pipe: %q", e) | ||
} | ||
return errc | ||
}, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// +build !linux | ||
|
||
package images | ||
|
||
func setupPipe() (string, func() <-chan error, error) { | ||
return "/dev/stdout", nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you end up bailing on the connection stuff, will need to remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--connection stuff must be in this release.