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 clientcontainer- Container name or IDusername- Username to delete