From 8f55948aa5c97472c4a8ef6664b10ed662ce1df5 Mon Sep 17 00:00:00 2001
From: Mrunal Patel <mrunalp@gmail.com>
Date: Wed, 7 Dec 2016 11:08:00 -0800
Subject: [PATCH] Don't add device to list if it doesn't exist anymore

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
---
 libcontainer/devices/devices_unix.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libcontainer/devices/devices_unix.go b/libcontainer/devices/devices_unix.go
index c77077d4..61c0c0c6 100644
--- a/libcontainer/devices/devices_unix.go
+++ b/libcontainer/devices/devices_unix.go
@@ -94,6 +94,9 @@ func getDevices(path string) ([]*configs.Device, error) {
 			if err == ErrNotADevice {
 				continue
 			}
+			if os.IsNotExist(err) {
+				continue
+			}
 			return nil, err
 		}
 		out = append(out, device)