-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
area/runtimeRuntimeRuntimekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.version/19.03
Description
I ran into this when trying to test a failure condition in a container. I ran this container with the minimum amount of memory and no swap expecting to see it be OOM killed but instead of the docker run command seems to die in a weird way and it leaves the container in 'Created'
Repro
root@bbuzbee-VirtualBox:~# docker run --memory=4MB --memory-swappiness=0 docker.elastic.co/beats/filebeat:7.8.0
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
docker: Error response from daemon: OCI runtime start failed: cannot start a container that has stopped: unknown.
ERRO[0000] error waiting for container: context canceled
root@bbuzbee-VirtualBox:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5d1a52b47f2c docker.elastic.co/beats/filebeat:7.8.0 "/usr/local/bin/dock…" 2 seconds ago Created nervous_goldwasser
Docker version
root@bbuzbee-VirtualBox:~# docker version
Client: Docker Engine - Community
Version: 19.03.10
API version: 1.40
Go version: go1.13.10
Git commit: 9424aeaee9
Built: Thu May 28 22:16:49 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.10
API version: 1.40 (minimum version 1.12)
Go version: go1.13.10
Git commit: 9424aeaee9
Built: Thu May 28 22:15:20 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/runtimeRuntimeRuntimekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.version/19.03