/// Represent errors in docker-ctl
#[derive(thiserror::Error, Debug)]
#[allow(missing_docs)]
pub enum Error
{
#[error("Container is already running.")]
ContainerRunning,
#[error("Container is not running.")]
ContainerNotRunning,
#[error("StdIO were not piped.")]
StdIONotPiped,
#[error("Missing username.")]
MissingUsername,
#[error("IO error: {0}.")]
IOError(#[from] std::io::Error),
#[error("Unknown environment variable: {0}.")]
VarError(#[from] std::env::VarError),
}