def METHOD_NAME(vm: virtual_machine.BaseVirtualMachine) -> None:
  """Run Docker as a non-root user.
  https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
  Args:
    vm: The VM to work on
  """
  # Create the docker group.
  vm.RemoteCommand('sudo groupadd docker', ignore_failure=True)
  # Add your user to the docker group.
  vm.RemoteCommand(f'sudo usermod -aG docker {vm.user_name}')
  # Log out and log back in so that your group membership is re-evaluated.
  vm.RemoteCommand(f'pkill -KILL -u {vm.user_name}', ignore_failure=True)