mirror of https://github.com/docker/docs.git
Merge pull request #14118 from usha-mandya/registry-json-update
Update the registry json file creation section
This commit is contained in:
commit
4b292bec93
|
@ -2,7 +2,6 @@
|
|||
description: Image Access Management
|
||||
keywords: image, access, management
|
||||
title: Image Access Management
|
||||
toc_max: 2
|
||||
---
|
||||
|
||||
Image Access Management is a new feature that is a part of the Docker Business subscription. This feature allows Organization owners to control which types of images (Docker Official Images, Docker Verified Publisher Images, Community images) their developers can pull from Docker Hub.
|
||||
|
@ -39,49 +38,62 @@ To configure Image Access Management permissions, perform the following steps:
|
|||
4. Select the category restrictions for your images by clicking **Allowed**.
|
||||
5. Once the restrictions are applied, your members can view the Org permissions page in a read-only format.
|
||||
|
||||
To ensure that each org member uses images in a safe and secure environment, you can perform the following steps below to enforce sign-in under your organization.
|
||||
### Enforce authentication
|
||||
|
||||
1. Download Docker Desktop 4.0 or a later release.
|
||||
To ensure that each org member uses images in a safe and secure environment, you
|
||||
can perform the following steps below to enforce sign-in under your
|
||||
organization. To do this:
|
||||
|
||||
- [Download and install for Windows](/desktop/windows/install/)
|
||||
- [Download and install for Mac](/desktop/mac/install/)
|
||||
1. Download the latest version of Docker Desktop, and then
|
||||
2. Create a `registry.json` file.
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> There currently is no Docker Desktop for Linux. Linux users will have the same restrictions as Mac and Windows users while logged in, but there is currently no way to require them to log in.
|
||||
Download Docker Desktop 4.0 or a later release.
|
||||
|
||||
2. Create a registry.json file on Windows or Mac.
|
||||
- [Download and install for Windows](/desktop/windows/install/)
|
||||
- [Download and install for Mac](/desktop/mac/install/)
|
||||
|
||||
For **Windows**:
|
||||
> **Note**
|
||||
>
|
||||
> There is currently no Docker Desktop for Linux. Linux users will have the same
|
||||
> restrictions as Mac and Windows users while logged in. However, there is
|
||||
> currently no way to enforce Linux users to log in.
|
||||
|
||||
Create a file `C:\ProgramData\DockerDesktop\registry.json` with file permissions that ensure that the developer using Docker Desktop cannot remove or edit the file (i.e., only the system administrator can write to the file). The file must be JSON and contain one or more organization names in the `allowedOrgs` key.
|
||||
#### Create a registry json file
|
||||
|
||||
To create your registry.json file:
|
||||
After you've successfully installed Docker Desktop, create a `registry.json` file on Windows or Mac.
|
||||
|
||||
1. Open Windows Powershell and select Run as Administrator.
|
||||
2. Type the following command: `cd /ProgramData/DockerDesktop/`
|
||||
3. In Notepad, type `registry.json` and enter one or more organization names in the `allowedOrgs` key and click Save.
|
||||
**On Windows**
|
||||
|
||||
Example:
|
||||
Create a file `C:\ProgramData\DockerDesktop\registry.json` with file permissions that ensure that the developer using Docker Desktop cannot remove or edit the file (i.e., only the system administrator can write to the file). The file must be JSON and contain one or more organization names in the `allowedOrgs` key.
|
||||
|
||||
To create your `registry.json` file on Windows:
|
||||
|
||||
1. Open Windows Powershell and select Run as Administrator.
|
||||
2. Type the following command: `cd /ProgramData/DockerDesktop/`
|
||||
3. In Notepad, type `registry.json` and enter one or more organization names in the `allowedOrgs` key and click Save.
|
||||
|
||||
For example:
|
||||
|
||||
```json
|
||||
{
|
||||
"allowedOrgs": ["mycompany"]
|
||||
}
|
||||
```
|
||||
4. Navigate to Powershell and type ```start .```
|
||||
|
||||
Congratulations, you have just created the registry.json file.
|
||||
4. Navigate to Powershell and type ```start .```
|
||||
|
||||
For **macOS**:
|
||||
Congratulations! You have just created the registry.json file.
|
||||
|
||||
Create a file `/Library/Application Support/com.docker.docker/registry.json` with file permissions that ensure that the developer using Docker Desktop cannot remove or edit the file (i.e., only the system administrator can write to the file). The file must be JSON and contain one or more organization names in the `allowedOrgs` key. The user must sign in and be a member of at least one of the organizations before using Docker Desktop.
|
||||
**On macOS**:
|
||||
|
||||
To create your registry.json file:
|
||||
1. Navigate to VS Code or any text editor of your choice.
|
||||
2. Enter one or more organization names in the `allowedOrgs` key and save it in your Documents.
|
||||
Create a file `/Library/Application Support/com.docker.docker/registry.json` with file permissions that ensure that the developer using Docker Desktop cannot remove or edit the file (i.e., only the system administrator can write to the file). The file must be JSON and contain one or more organization names in the `allowedOrgs` key. The user must sign in and be a member of at least one of the organizations before using Docker Desktop.
|
||||
|
||||
Example:
|
||||
To create your `registry.json` file on macOS:
|
||||
|
||||
1. Navigate to VS Code or any text editor of your choice.
|
||||
2. Enter one or more organization names in the `allowedOrgs` key and save it in your Documents.
|
||||
|
||||
For example:
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -95,13 +107,15 @@ To ensure that each org member uses images in a safe and secure environment, you
|
|||
|
||||
Note: if prompted, type your password associated with your local computer.
|
||||
|
||||
4. Type the following command:
|
||||
4. Type the following command:
|
||||
|
||||
`Documents/registry.json /Library/Application\ Support/com.docker.docker/registry.json`
|
||||
`sudo cp Documents/registry.json /Library/Application\ Support/com.docker.docker/registry.json`
|
||||
|
||||
Congratulations, you have just created the registry.json file.
|
||||
Congratulations! You have just created the `registry.json` file.
|
||||
|
||||
3. To confirm that the restrictions are successful, have each org member pull an image onto their local computer after signing into Docker Desktop. If they are unable to sign in, they will receive an error message.
|
||||
### Verify the restrictions
|
||||
|
||||
To confirm that the restrictions are successful, have each org member pull an image onto their local computer after signing into Docker Desktop. If they are unable to sign in, they will receive an error message.
|
||||
|
||||
For example, if you enable Image Access Management, your members can pull an Organization Image, Docker Official Image, or Verified Publisher Image onto their local machine. If you disable the restrictions, your members can pull any image, including Community Images.
|
||||
|
||||
|
|
Loading…
Reference in New Issue