---
title: Charmhub | Deploy Docker using Charmhub - The Open Operator Collection
description: Deploy the latest version of Docker on any cloud.
url: https://charmhub.io/docker/configurations
---

# Docker

[Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

* [Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

Platform:

20.04

18.04

16.04

edge de723be

```
juju deploy docker --channel edge
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [apt-key-server](https://charmhub.io/docker/configurations#apt-key-server)
* [cuda\_repo](https://charmhub.io/docker/configurations#cuda_repo)
* [custom-registry-ca](https://charmhub.io/docker/configurations#custom-registry-ca)
* [disable-juju-proxy](https://charmhub.io/docker/configurations#disable-juju-proxy)
* [docker-ce-package](https://charmhub.io/docker/configurations#docker-ce-package)
* [docker-logins](https://charmhub.io/docker/configurations#docker-logins)
* [docker-opts](https://charmhub.io/docker/configurations#docker-opts)
* [docker\_runtime](https://charmhub.io/docker/configurations#docker_runtime)
* [docker\_runtime\_key\_url](https://charmhub.io/docker/configurations#docker_runtime_key_url)
* [docker\_runtime\_package](https://charmhub.io/docker/configurations#docker_runtime_package)
* [docker\_runtime\_repo](https://charmhub.io/docker/configurations#docker_runtime_repo)
* [enable-cgroups](https://charmhub.io/docker/configurations#enable-cgroups)
* [http\_proxy](https://charmhub.io/docker/configurations#http_proxy)
* [https\_proxy](https://charmhub.io/docker/configurations#https_proxy)
* [no\_proxy](https://charmhub.io/docker/configurations#no_proxy)
* [nvidia-container-runtime-package](https://charmhub.io/docker/configurations#nvidia-container-runtime-package)
* [nvidia-docker-package](https://charmhub.io/docker/configurations#nvidia-docker-package)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* apt-key-server | string

  Default: hkp://keyserver.ubuntu.com:80

  APT Key Server
* cuda\_repo | string

  Default: 10.0.130-1

  The cuda-repo package version to install.
* custom-registry-ca | string

  Base64 encoded Certificate Authority (CA) bundle. Setting this config
  allows container runtimes to pull images from registries with TLS
  certificates signed by an external CA.
* disable-juju-proxy | boolean

  Ignore juju-http(s) proxy settings on this charm.
  If set to true, all juju https proxy settings will be ignored
* docker-ce-package | string

  Default: docker-ce=5:18.09.1~3-0~ubuntu-bionic

  The pinned version of docker-ce package installed with nvidia-docker.
* docker-logins | string

  Default: []

  Docker login credentials. Setting this config allows Kubelet to pull images from
  registries where auth is required.

  The value for this config must be a JSON array of credential objects, like this:
  [{"server": "my.registry", "username": "myUser", "password": "myPass"}]
* docker-opts | string

  Extra options to pass to the Docker daemon. e.g. --insecure-registry.
* docker\_runtime | string

  Default: auto

  Docker runtime to install valid values are "upstream" (Docker PPA), "nvidia" (Nvidia PPA),
  "apt" (Ubuntu archive), "auto" (Nvidia PPA or Ubuntu archive, based on your hardware),
  or "custom" (must have set `docker_runtime_repo` URL, `docker_runtime_key_url` URL and
  `docker_runtime_package` name).
* docker\_runtime\_key\_url | string

  Custom Docker repository validation key URL.
* docker\_runtime\_package | string

  Custom Docker repository package name.
* docker\_runtime\_repo | string

  Custom Docker repository, given in deb format. Use `{ARCH}` to determine architecture at
  runtime. Use `{CODE}` to set release codename. E.g.
  `deb [arch={ARCH}] https://download.docker.com/linux/ubuntu {CODE} stable`.
* enable-cgroups | boolean

  Enable GRUB cgroup overrides cgroup\_enable=memory swapaccount=1. WARNING
  changing this option will reboot the host - use with caution on production
  services.
* http\_proxy | string

  URL to use for HTTP\_PROXY to be used by Docker. Useful in
  egress-filtered environments where a proxy is the only option for
  accessing the registry to pull images.
* https\_proxy | string

  URL to use for HTTPS\_PROXY to be used by Docker. Useful in
  egress-filtered environments where a proxy is the only option for
  accessing the registry to pull images.
* no\_proxy | string

  Comma-separated list of destinations (either domain names or IP
  addresses) which should be accessed directly, rather than through
  the proxy defined in http\_proxy or https\_proxy. Must be less than
  2023 characters long.
* nvidia-container-runtime-package | string

  Default: nvidia-container-runtime=2.0.0+docker18.09.1-1

  The pinned version of nvidia-container-runtime package.
* nvidia-docker-package | string

  Default: nvidia-docker2=2.0.3+docker18.09.1-1

  The pinned version of nvidia-docker2 package.
