...
This commit is contained in:
@@ -44,7 +44,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
match Container::new("existing-container") {
|
||||
Ok(container) => {
|
||||
if container.container_id.is_some() {
|
||||
println!("Found container with ID: {}", container.container_id.unwrap());
|
||||
println!("Found container with ID: {}", container.container_id.as_ref().unwrap());
|
||||
|
||||
// Perform operations on the existing container
|
||||
let status = container.status()?;
|
||||
|
Reference in New Issue
Block a user