diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-01-06 12:44:33 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-08 19:34:21 +0000 |
commit | 3d05f100f7be78932242d3d09a88e4a6236a0d3c (patch) | |
tree | 357ce1b330fcec96fcc309867a86879e5857b516 /libpod/sql_state_internal.go | |
parent | 7b08aa78e4ede4c54fda6cd9917bb62e18d0d634 (diff) | |
download | podman-3d05f100f7be78932242d3d09a88e4a6236a0d3c.tar.gz podman-3d05f100f7be78932242d3d09a88e4a6236a0d3c.tar.bz2 podman-3d05f100f7be78932242d3d09a88e4a6236a0d3c.zip |
Save ContainerConfig.User to database
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #194
Approved by: rhatdan
Diffstat (limited to 'libpod/sql_state_internal.go')
-rw-r--r-- | libpod/sql_state_internal.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/sql_state_internal.go b/libpod/sql_state_internal.go index 8513216fa..5904f4254 100644 --- a/libpod/sql_state_internal.go +++ b/libpod/sql_state_internal.go @@ -181,6 +181,7 @@ func prepareDB(db *sql.DB) (err error) { RootfsImageID TEXT NOT NULL, RootfsImageName TEXT NOT NULL, UseImageConfig INTEGER NOT NULL, + User TEXT NOT NULL, CHECK (Stdin IN (0, 1)), CHECK (CreateNetNS IN (0, 1)), CHECK (UseImageConfig IN (0, 1)), @@ -290,6 +291,7 @@ func ctrFromScannable(row scannable, runtime *Runtime, specsDir string, lockDir rootfsImageID string rootfsImageName string useImageConfig int + user string state int configPath string runDir string @@ -320,6 +322,7 @@ func ctrFromScannable(row scannable, runtime *Runtime, specsDir string, lockDir &rootfsImageID, &rootfsImageName, &useImageConfig, + &user, &state, &configPath, &runDir, @@ -355,6 +358,7 @@ func ctrFromScannable(row scannable, runtime *Runtime, specsDir string, lockDir ctr.config.Stdin = boolFromSQL(stdin) ctr.config.StopSignal = stopSignal ctr.config.StopTimeout = stopTimeout + ctr.config.User = user ctr.state.State = ContainerState(state) ctr.state.ConfigPath = configPath |