diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-11-11 07:57:04 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-11-11 13:11:15 -0500 |
commit | f3648b4ae84ea843fb3319a2c6dc20f3a4adff35 (patch) | |
tree | 0f41d632e2809ed1e0fef0244de152514b0540fb /test/e2e/login_logout_test.go | |
parent | ea753128952e1a6d4b56cc80d232f6dbfb420ba5 (diff) | |
download | podman-f3648b4ae84ea843fb3319a2c6dc20f3a4adff35.tar.gz podman-f3648b4ae84ea843fb3319a2c6dc20f3a4adff35.tar.bz2 podman-f3648b4ae84ea843fb3319a2c6dc20f3a4adff35.zip |
Cleanup error reporting
The error message reported is overlay complicated and the added test does not
really help the user.
Currently the error looks like:
podman run -p 80:80 fedora echo hello
Error: failed to expose ports via rootlessport: "cannot expose privileged port 80, you might need to add "net.ipv4.ip_unprivileged_port_start=0" (currently 1024) to /etc/sysctl.conf, or choose a larger port number (>= 1024): listen tcp 0.0.0.0:80: bind: permission denied\n"
After this change
./bin/podman run -p 80:80 fedora echo hello
Error: cannot expose privileged port 80, you might need to add "net.ipv4.ip_unprivileged_port_start=0" (currently 1024) to /etc/sysctl.conf, or choose a larger port number (>= 1024): listen tcp 0.0.0.0:80: bind: permission denied
Control chars have been eliminated.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/login_logout_test.go')
0 files changed, 0 insertions, 0 deletions