Skip to main content

delete_user

Function delete_user 

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

Delete a user from the container

Uses userdel -r to remove the user and their home directory.

ยงArguments

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