docker
, docker-compose
, and docker-machine
areup-to-date and compatible with Docker.app
. Your output may differ if you arerunning different versions.hello-world
image above, if theimage is not found locally, Docker pulls it from Docker Hub.http://localhost/
to view the nginx homepage.Because we specified the default HTTP port, it isn’t necessary to append:80
at the end of the URL.Early beta releases useddocker
as the hostname to build the URL. Now,ports are exposed on the private IP addresses of the VM and forwarded tolocalhost
with no other host name set.
docker container ls
or docker ps
):--all
or -a
) to view stopped containers.2
GB runtime memory,allocated from the total available memory on your Mac. To increase the RAM, set this to a higher number. To decrease it, lower the number./Users
directory. In that case, share the drive where the Dockerfile and volume are located. Otherwise, you get file not found
or cannot start service
errors at runtime`.+
and navigate to the directory you want to add.-v
) feature./Users
.)http://proxy.example.com
, Docker uses this proxy whenpulling containers.HTTP_PROXY
, http_proxy
, andno_proxy
environment variables are set. When your proxy configuration changes,Docker restarts automatically to pick up the new settings. If you have anycontainers that you would like to keep running across restarts, you should consider using restart policies.config.json
file and set experimental
to enabled.Experimental
is true
, then Docker is running in experimental mode, as shownhere. (If false
, Experimental mode is off.)kubectl
, is included and configured to connectto the local Kubernetes server. If you have kubectl
already installed andpointing to some other environment, such as minikube
or a GKE cluster, be sureto change context so that kubectl
is pointing to docker-for-desktop
:kubectl
with Homebrew, or by some other method, andexperience conflicts, remove /usr/local/bin/kubectl
./usr/local/bin/kubectl
command on your Mac.docker-desktop
.dockerservice ls
, because managing them manually is not supported. To make themvisible, select Show system containers (advanced) and click Apply andRestart. Most users do not need this option./usr/local/bin/kubectl
command is removed.~/.docker/certs.d
directory in order for the changes totake effect.~/.docker/certs.d/<MyRegistry>:<Port>/client.cert
and~/.docker/certs.d/<MyRegistry>:<Port>/client.key
.~/.docker/certs.d
folder on your Mac to the /etc/docker/certs.d
directory on Moby (the DockerDesktop xhyve
virtual machine).~/.docker/certs.d
directory in order for the changes to takeeffect.docker run
that attempt to pull from the registry produce errormessages on the command line, as well as on the registry.docker
,docker-machine
, and docker-compose
commands. The completion scripts may befound inside Docker.app
, in the Contents/Resources/etc/
directory and can beinstalled both in Bash and Zsh.bash_completion.d/
directory. For example, if youinstalled bash via Homebrew:~/.bash_profile
:site-functions/
directory. For example, if you installed Zsh via Homebrew:com.docker.osxfs trace
performance profiling command. Users can now run the com.docker.osxfs trace --summary
option for a high-level summary of operations, instead of receiving a trace of all operations.docker run -v .kube:kube ... kubectl
works.cluster-admin
role on local Kubernetes cluster to kube-system
namespace./etc/machine-id
to the virtual machine. Fixes docker/for-mac#3554.docker-desktop.<domain>
every 10s. It now relies on the host’s DNS domain search order rather than trying to replicate it inside the VM./etc/hosts
to help with diagnostics.~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux
to ~/Library/Containers/com.docker.docker/Data/vms/0`).host.docker.internal
should be used for host resolution from containers. Older aliases (still valid) are deprecated in favor of this one. (See https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06).host.docker.internal
).docker push
to an insecure registry. Fixes docker/for-mac#2392raw
format VM disks by default. This improves disk throughput (from 320MiB/sec to 600MiB/sec in dd
on a 2015 MacBook Pro) and disk space handling.Existing disks are kept in qcow format, if you want to switch to raw format you need to “Remove all data” or “Reset to factory defaults”. See https://docs.docker.com/docker-for-mac/faqs/#disk-usagedocker.for.mac.host.internal
should be used instead of docker.for.mac.localhost
(still valid) for host resolution from containers, since since there is an RFC banning the use of subdomains of localhost. See https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06.compact
: mirage/ocaml-qcow#94)docker.for.mac.localhost
cached
mount flag to improve performance of macOS mounts when strict consistency is not necessarylocalhost
correctly (see docker/for-mac#1511)config.json
and osxkeychain
credentialsvmnetd
should not crash when user home directory is on an external drivedaemon.json
should render nicely in the UIdaemon.json
through a link in advanced subpaneldaemon.json
)DomainName
etc/ssl/certs/ca-certificates.crt
docker-diagnose
: display and record the time the diagnosis was capturedcom.docker.vmnetd
Fixes docker/for-mac#47/etc/hosts
should now resolve from within containers0.0.0.0
and 127.0.0.1
Fixes issue reported indocker/for-mac#68inotify
events(saving with TextEdit works now)inotify
failure and crasheschowns
sysfs
settings, transparent huge pages disabledcgroup
mount to support systemd
in containersfs.file-max
to 524288dtrace
support and lock fixes