diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-03-07 12:24:56 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-08 16:40:21 +0000 |
commit | c657511bce7bc1c5da4b5554a4850aa4046711b0 (patch) | |
tree | 7f369caa423e86e7a5751abc433f7052a019374b /libpod/container.go | |
parent | fcc36633557fd52daa2f48dbeb991d89fd5645bc (diff) | |
download | podman-c657511bce7bc1c5da4b5554a4850aa4046711b0.tar.gz podman-c657511bce7bc1c5da4b5554a4850aa4046711b0.tar.bz2 podman-c657511bce7bc1c5da4b5554a4850aa4046711b0.zip |
Add location in DB for saving files to bind mount in
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #462
Approved by: baude
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go index 96fda27c1..95db85b70 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -148,6 +148,12 @@ type containerState struct { // Only populated if we created a network namespace for the container, // and the network namespace is currently active Routes []*types.Route `json:"routes,omitempty"` + // BindMounts contains files that will be bind-mounted into the + // container when it is mounted. + // These include /etc/hosts and /etc/resolv.conf + // This maps the path the file will be mounted to in the container to + // the path of the file on disk outside the container + BindMounts map[string]string `json:"bindMounts,omitempty"` } // ExecSession contains information on an active exec session |