Enforce sign-in for Docker Desktop

By default, members of your organization can use Docker Desktop without signing in. When users don’t sign in as a member of your organization, they don’t receive the benefits of your organization’s subscription and they can circumvent Docker’s security features for your organization.

There are multiple methods for enforcing sign-in, depending on your companies' set up and preferences:

How is sign-in enforced?

When Docker Desktop starts and it detects a registry key, .plist file, or registry.json file, the following occurs:

  • A Sign in required! prompt appears requiring the user to sign in as a member of your organization to use Docker Desktop.
    Enforce Sign-in
Prompt
  • When a user signs in to an account that isn’t a member of your organization, they are automatically signed out and can’t use Docker Desktop. The user can select Sign in and try again.
  • When a user signs in to an account that is a member of your organization, they can use Docker Desktop.
  • When a user signs out, the Sign in required! prompt appears and they can no longer use Docker Desktop.

Enforcing sign-in versus enforcing single sign-on (SSO)

Enforcing SSO and enforcing sign-in are different features. The following table provides a description and benefits when using each feature.

EnforcementDescriptionBenefits
Enforce sign-in onlyUsers must sign in before using Docker Desktop.Ensures users receive the benefits of your subscription and ensures security features are applied. In addition, you gain insights into users’ activity.
Enforce single sign-on (SSO) onlyIf users sign in, they must sign in using SSO.Centralizes authentication and enforces unified policies set by the identity provider.
Enforce bothUsers must sign in using SSO before using Docker Desktop.Ensures users receive the benefits of your subscription and ensures security features are applied. In addition, you gain insights into users’ activity. Finally, it centralizes authentication and enforces unified policies set by the identity provider.
Enforce neitherIf users sign in, they can use SSO or their Docker credentials.Lets users access Docker Desktop without barriers, but at the cost of reduced security and insights.

What's next?

  • To enforce sign-in, review the Methods guide.
  • To enforce SSO, review the Enforce SSO steps.