Questions tagged [docker-for-mac]

Docker for Mac is a native Mac application that uses xhyve to virtualize the Docker Engine environment and Linux kernel-specific features for the Docker daemon.

216 questions
314
votes
11 answers

What is linux equivalent of "host.docker.internal"

On Mac and Windows it is possible to use host.docker.internal (Docker 18.03+) inside container. Is there one for Linux that will work out of the box without passing env variables or extracting it using various CLI commands?
klor
  • 3,596
  • 2
  • 13
  • 13
226
votes
13 answers

Where is /var/lib/docker on Mac/OS X

I´m looking for the folder /var/lib/docker on my Mac after installing docker for Mac. With docker info I get Containers: 5 ... Server Version: 1.12.0-rc4 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing…
christian
  • 9,412
  • 10
  • 41
  • 51
166
votes
18 answers

Mounts denied. The paths ... are not shared from OS X and are not known to Docker

The command docker run -v /var/folders/zz/... produces the following error. docker: Error response from daemon: Mounts denied: The paths /var/folders/zz/... and /var/folders/zz/... are not shared from OS X and are not known to Docker. You can…
Aayush
  • 1,790
  • 2
  • 11
  • 9
128
votes
9 answers

How to get IP address of running docker container

I am using Docker for Mac. I am running a nodejs based microservice in a Docker container. I want to test node microservice through the browser. How to get IP address of running docker container?
user3067875
  • 1,291
  • 2
  • 9
  • 4
117
votes
3 answers

docker for mac memory usage in com.docker.hyperkit

I'm running docker desktop community 2.1.0.3 on MacOS Mojave. I've got 8GB of memory allocated to Docker, which already seems like a lot (that's half my RAM). Somehow even after exiting and then starting Docker for Mac again, which means no…
williamcodes
  • 6,317
  • 8
  • 32
  • 55
96
votes
5 answers

How do I restart Docker for Mac from the terminal?

Docker for Mac has a neat little 'restart' button in the dropdown from the whale icon in the menu bar. I'd like to be able to restart Docker for Mac from the terminal, though. What command would I need to run?
rouan
  • 5,339
  • 6
  • 22
  • 36
86
votes
6 answers

How to access the VM created by docker's HyperKit?

Docker for Mac uses a Linux VM created by HyperKit for storing and running containers on Mac. With Docker Toolbox, I can just open VirtualBox and access the docker-machine VM. But with Docker for Mac, how do I access the VM created by HyperKit?
Jifeng Zhang
  • 5,037
  • 4
  • 30
  • 43
70
votes
6 answers

Disable autostart of docker-compose project

I have a docker-compose project using Docker for Mac that autostarts when I boot the computer. I usually start the project with docker-compose up -d, but even running docker-compose stop before shutting down autostarts it again on boot. I am not…
Harald Nordgren
  • 11,693
  • 6
  • 41
  • 65
64
votes
4 answers

docker build with Dockerfile, but the image has no name or tag

I installed Docker desktop for mac. The version is 1.12.0-rc4-beta19 when I use docker build -t self/centos:java8 . the image has no name or tag REPOSITORY TAG IMAGE ID CREATED SIZE
viewking
  • 675
  • 1
  • 6
  • 8
55
votes
3 answers

Docker for Mac - Kubernetes - reference local image

I am using Docker for Mac with Kubernetes support and I'm struggling to create a Kubernetes Deployment that references a locally built image. Output of docker images: REPOSITORY TAG IMAGE test latest 2c3bdb36a5ed My deployment.yaml…
user62058
  • 1,417
  • 2
  • 13
  • 22
38
votes
2 answers

Docker Compose Mac Error: Cannot start service zoo1: Mounts denied:

I am getting the following error when running docker-compose up -d: % docker-compose up -d Creating network "kafka-test_default" with the default driver Creating kafka-test_zoo1_1 ... error ERROR: for kafka-test_zoo1_1 Cannot start service zoo1:…
Athena Wisdom
  • 6,101
  • 9
  • 36
  • 60
36
votes
9 answers

docker on OSX slow volumes

I'm trying to use docker beta on OSX, mainly for Symfony development but the mounted volumes are incredible slow. Even for a vanilla Symfony project I get 6s page load time. That's unbearable! Has anyone found a solution to this issue? Trying to…
Viorel
  • 1,420
  • 1
  • 17
  • 27
25
votes
7 answers

docker swarm init could not choose an IP address error

Experimenting with Docker Swarm with Docker Desktop for Mac. I tried this: docker-machine create -d virtualbox node-1 docker-machine create -d virtualbox node-2 docker-machine create -d virtualbox node-3 eval $(docker-machine env node-1) docker…
Justin
  • 2,224
  • 2
  • 22
  • 28
21
votes
3 answers

How do you get around the size limitation of Docker.qcow2 in the Docker for Mac?

I have a large (100gb+) database that I'm trying to run with the official postgres image. I can't store the data in a docker volume because the ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 file in Docker for…
James Chevalier
  • 10,604
  • 5
  • 48
  • 74
20
votes
2 answers

docker: Error response from daemon: Mounts denied: approving /path/to/file does not exist

My docker command: docker run -it --rm -v $(pwd):/mutcompute ens_net:v3 Gives me the following error: docker: Error response from daemon: Mounts denied: approving /Users/danny/Documents/Codes/Python/net_containers/ensemble_net: file does not…
Danny Diaz
  • 375
  • 1
  • 4
  • 12
1
2 3
14 15