> ## Documentation Index
> Fetch the complete documentation index at: https://e2b-sandbox-agent-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Docker push authentication error

When the CLI tries to push a Docker image to the registry, you might encounter an authentication error. This error sometimes occurs for users when Docker doesn't send any credentials to the registry.
To resolve this issue, you can use the following steps:

## MacOS

1. Open Docker Desktop.
2. Go to Settings.
3. Go to Docker Engine.
4. Add the following line to the json configuration:

```json theme={null}
{
  "insecure-registries": ["host.docker.internal:49984"]
}
```

It may look like this:

```json theme={null}
{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "features": {
    "buildkit": true
  },
  "insecure-registries": [
    "host.docker.internal:49984"
  ]
}
```

This allows Docker to send requests to local proxy, which handles the authentication.

5. Click Apply & Restart.

## Linux

1. Edit the Docker configuration file (usually `/etc/docker/daemon.json`) and add the following line, if the file doesn't exist, create it:

```json theme={null}
{
  "insecure-registries": ["localhost:49984"]
}
```

2. Restart Docker:

```bash theme={null}
sudo systemctl restart docker
```

## Windows

1. Open Docker Desktop.
2. Go to Settings.
3. Go to Docker Engine.
4. Add the following line to the json configuration:

```json theme={null}
{
  "insecure-registries": ["host.docker.internal:49984"]
}
```

5. Click Apply & Restart.
