Skip to main content

user_exists

Function user_exists 

Source
pub async fn user_exists(
    client: &DockerClient,
    container: &str,
    username: &str,
) -> Result<bool, DockerError>
Expand description

Check if a user exists in the container

§Arguments

  • client - Docker client
  • container - Container name or ID
  • username - Username to check

§Returns

true if the user exists, false otherwise