### Troubleshoot a crashed container
If you try to start a container with an invalid configuration or command, you
can use Ask Gordon to troubleshoot the error. For example, try starting a
Postgres container without specifying a database password:
```console
$ docker run postgres
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
connections without a password. This is *not* recommended.
See PostgreSQL documentation about "trust":
https://www.postgresql.org/docs/current/auth-trust.html
```
In the **Containers** view in Docker Desktop, select the ✨ icon next to the
container's name, or inspect the container and open the **Ask Gordon** tab.
### Get help with running a container
If you want to run a specific image but you're not sure how, Gordon might be
able to help you get set up:
1. Pull an image from Docker Hub (for example, `postgres`).
2. Open the **Images** view in Docker Desktop and select the image.
3. Select the **Run** button.
In the **Run a new container** dialog, you should see a message about
**Ask Gordon**.

The linked text in the hint is a suggested prompt to start a conversation with
Ask Gordon.
### Improve a Dockerfile
Gordon can analyze your Dockerfile and suggest improvements. To have Gordon
evaluate your Dockerfile using the `docker ai` command:
1. Navigate to your project directory:
```console
$ cd path/to/my/project
```
2. Use the `docker ai` command to rate your Dockerfile:
```console
$ docker ai rate my Dockerfile
```
Gordon will analyze your Dockerfile and identify opportunities for improvement
across several dimensions:
- Build cache optimization
- Security
- Image size efficiency
- Best practices compliance
- Maintainability
- Reproducibility
- Portability
- Resource efficiency
## Disable Ask Gordon
### For individual users
If you've enabled Ask Gordon and you want to disable it again:
1. Open the **Settings** view in Docker Desktop.
2. Navigate to **Beta features**.
3. Clear the **Enable Docker AI** checkbox.
4. Select **Apply & restart**.
### For organizations
If you want to disable Ask Gordon for your entire Docker organization, using
[Settings
Management](/manuals/security/for-admins/hardened-desktop/settings-management/_index.md),
add the following property to your `admin-settings.json` file:
```json
{
"enableDockerAI": {
"value": false,
"locked": true
}
}
```
Alternatively, you can disable all Beta features by setting `allowBetaFeatures`
to false:
```json
{
"allowBetaFeatures": {
"value": false,
"locked": true
}
}
```
## Feedback
<!-- vale Docker.We = NO -->
We value your input on Ask Gordon and encourage you to share your experience.
Your feedback helps us improve and refine Ask Gordon for all users. If you
encounter issues, have suggestions, or simply want to share what you like,
here's how you can get in touch:
- Thumbs-up and thumbs-down buttons
Rate Ask Gordon's responses using the thumbs-up or thumbs-down buttons in the
response.
- Feedback survey
You can access the Ask Gordon survey by following the _Give feedback_ link in
the **Ask Gordon** view in Docker Desktop, or from the CLI by running the
`docker ai feedback` command.