spiegel_podman/cmd/podman
Giuseppe Scrivano 3f0e2367c2 libpod: fix panic when using -t and the process fails to start
We were closing resize both on the receiver and the sender side.
This was racy as the sender might have written to a closed channel.
If the container could not be created, the attach exited
immediately causing the channel to be closed before the write from
resizeTty.

Change the logic to close only from the senderSide and add another
channel to notify the resizeTty goroutine when the container exited.

Closes: https://github.com/projectatomic/libpod/issues/785

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #787
Approved by: mheon
2018-05-17 13:26:16 +00:00
..
batchcontainer varlink containers 2018-05-03 17:31:33 +00:00
docker Rename all references to kpod to podman 2017-12-18 16:46:05 +00:00
formats Unescape characters in inspect JSON format output 2018-04-10 14:05:25 +00:00
libpodruntime libpod: Add HooksDirNotExistFatal 2018-05-11 16:26:35 +00:00
varlink implement varlink commit 2018-05-15 17:08:10 +00:00
attach.go varlink images 2018-04-26 19:14:44 +00:00
build.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
commit.go improve podman commit documentation and error messages 2018-05-15 20:38:56 +00:00
common.go Begin wiring in USERNS Support into podman 2018-05-04 17:15:55 +00:00
common_test.go Rename all references to kpod to podman 2017-12-18 16:46:05 +00:00
create.go Begin wiring in USERNS Support into podman 2018-05-04 17:15:55 +00:00
create_cli.go Add more validation to --volume flag for run and create 2018-04-30 19:30:57 +00:00
create_cli_test.go Implement and test the following flags for podman run and create 2018-01-15 19:27:10 +00:00
diff.go varlink images 2018-04-26 19:14:44 +00:00
exec.go varlink images 2018-04-26 19:14:44 +00:00
export.go Make ':' a restricted character for file names 2018-04-30 19:58:22 +00:00
history.go varlink images 2018-04-26 19:14:44 +00:00
images.go varlink images 2018-04-26 19:14:44 +00:00
import.go Make ':' a restricted character for file names 2018-04-30 19:58:22 +00:00
info.go varlink images 2018-04-26 19:14:44 +00:00
inspect.go Begin wiring in USERNS Support into podman 2018-05-04 17:15:55 +00:00
kill.go varlink images 2018-04-26 19:14:44 +00:00
load.go Make ':' a restricted character for file names 2018-04-30 19:58:22 +00:00
login.go Fix build after c/image changes 2018-03-16 14:35:07 +00:00
logout.go Fix podman logout --all flag 2018-05-02 16:55:31 +00:00
logs.go varlink images 2018-04-26 19:14:44 +00:00
main.go pkg/hooks: Version the hook structure and add 1.0.0 hooks 2018-05-11 16:26:35 +00:00
mount.go varlink images 2018-04-26 19:14:44 +00:00
parse.go Make ':' a restricted character for file names 2018-04-30 19:58:22 +00:00
pause.go varlink images 2018-04-26 19:14:44 +00:00
port.go Add missing newline to podman port 2018-05-10 08:53:28 +00:00
ps.go Fix calculation of RunningFor in ps json output 2018-05-05 11:48:06 +00:00
pull.go varlink images 2018-04-26 19:14:44 +00:00
push.go fix segfault for podman push 2018-05-15 17:04:59 +00:00
README.md Update Podman-specific readme 2018-05-11 15:32:27 +00:00
restart.go varlink containers 2018-05-03 17:31:33 +00:00
rm.go varlink images 2018-04-26 19:14:44 +00:00
rmi.go varlink images 2018-04-26 19:14:44 +00:00
run.go Major fixes to systemd cgroup handling 2018-05-11 14:43:57 +00:00
run_test.go Begin wiring in USERNS Support into podman 2018-05-04 17:15:55 +00:00
save.go Allow push/save without image reference 2018-05-16 18:06:52 +00:00
search.go varlink images 2018-04-26 19:14:44 +00:00
sigproxy.go Add signal proxying to podman run, start, and attach 2018-03-15 16:00:20 -04:00
spec.go networking, userNS: configure the network namespace after create 2018-05-04 17:15:55 +00:00
spec_test.go Implement --image-volumes for create and run 2018-02-22 15:14:00 +00:00
start.go varlink images 2018-04-26 19:14:44 +00:00
stats.go varlink images 2018-04-26 19:14:44 +00:00
stop.go varlink images 2018-04-26 19:14:44 +00:00
tag.go varlink images 2018-04-26 19:14:44 +00:00
top.go varlink images 2018-04-26 19:14:44 +00:00
umount.go varlink images 2018-04-26 19:14:44 +00:00
unpause.go varlink images 2018-04-26 19:14:44 +00:00
user.go Rename all references to kpod to podman 2017-12-18 16:46:05 +00:00
utils.go libpod: fix panic when using -t and the process fails to start 2018-05-17 13:26:16 +00:00
varlink.go varlink images 2018-04-26 19:14:44 +00:00
version.go Initial varlink implementation 2018-04-23 14:29:45 +00:00
wait.go varlink images 2018-04-26 19:14:44 +00:00

podman - Simple debugging tool for pods and images

podman is a daemonless container runtime for managing containers, pods, and container images. It is intended as a counterpart to CRI-O, to provide low-level debugging not available through the CRI interface used by Kubernetes. It can also act as a container runtime independent of CRI-O, creating and managing its own set of containers.

Use cases

  1. Create containers
  2. Start, stop, signal, attach to, and inspect existing containers
  3. Run new commands in existing containers
  4. Push and pull images
  5. List and inspect existing images
  6. Create new images by committing changes within a container
  7. Create pods
  8. Start, stop, signal, and inspect existing pods
  9. Populate pods with containers