wip: Docker file

This commit is contained in:
Jack Wills
2022-09-04 15:49:41 -04:00
parent a7bcaa3eb4
commit bfc9cf9b39
9 changed files with 159 additions and 43 deletions
+14
View File
@@ -113,6 +113,20 @@ impl State {
}
}
impl From<String> for State {
fn from(input: String) -> Self {
match input.as_ref() {
"dead" => Self::Dead,
"exited" => Self::Exited,
"paused" => Self::Paused,
"removing" => Self::Removing,
"restarting" => Self::Restarting,
"running" => Self::Running,
_ => Self::Unknown,
}
}
}
impl From<&str> for State {
fn from(input: &str) -> Self {
match input {