pub async fn lock_user(
client: &DockerClient,
container: &str,
username: &str,
) -> Result<(), DockerError>Expand description
Lock a user account (disable password authentication)
Uses passwd -l to lock the account. The user will not be able
to log in using password authentication.
ยงArguments
client- Docker clientcontainer- Container name or IDusername- Username to lock