All Questions
1,566
questions
562
votes
39
answers
678k
views
Cannot connect to the Docker daemon on macOS
I normally prefer to manage my apps on my OSX with brew
I am able to install docker, docker-compose and docker-machine
docker --version
Docker version 17.05.0-ce, build 89658be
docker-compose --...
278
votes
8
answers
286k
views
Brew install docker does not include docker engine?
Trying to setup docker from brew, however the engine does not seem to be included in any of the any of the official formulas.
brew install docker-machine docker-compose
So these only installs the ...
240
votes
16
answers
361k
views
M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' Issue
I just downloaded Docker Preview v3.1 https://docs.docker.com/docker-for-mac/apple-m1/ and tried running keycloak.
Anyone else running into this issue?
docker run -p 8080:8080 -e KEYCLOAK_USER=admin -...
239
votes
13
answers
138k
views
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
...
228
votes
5
answers
324k
views
How to easily install and uninstall docker on MacOs
My question is
How to easily install docker to have it available in terminal and how to uninstall docker on osx?
181
votes
20
answers
219k
views
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 ...
142
votes
13
answers
120k
views
Cannot remove images even though no container is running
I had multiple stopped containers and images on my machine.
I want to clean up and remove all containers:
docker ps -a returns nothing.
I run docker rmi $(docker images -q) to remove the cached images ...
138
votes
11
answers
186k
views
How to uninstall Docker completely from a Mac?
I would like to remove the Docker toolbox completely from my Mac. I tried to remove Docker from the /Applications folder, but it didn't work out.
128
votes
14
answers
213k
views
Docker & Postgres: Failed to bind tcp 0.0.0.0:5432 address already in use
Problem
I'm trying to start postgres in a docker container on my Mac, but I keep getting the following error message
docker: Error response from daemon: driver failed programming external ...
122
votes
8
answers
107k
views
How to increase docker-machine memory Mac
I am new to Docker, and trying to go through this tutorial setting up MemSQL from a Docker image - http://docs.memsql.com/4.0/setup/docker/ . I am on a Mac, and the tutorial uses boot2docker which ...
122
votes
12
answers
82k
views
Docker filling up storage on macOS
(Post created on Oct 05 '16)
I noticed that every time I run an image and delete it, my system doesn't return to the original amount of available space.
The lifecycle I'm applying to my containers is:
...
116
votes
15
answers
362k
views
Unable to find docker image locally
I was following this post - the reference code is on GitHub. I have cloned the repository on my local.
The project has got a react app inside it. I'm trying to run it on my local following step 7 on ...
114
votes
23
answers
259k
views
Docker command not found when running on Mac
I'm trying to run the below code as instructed in the docker-graphite-statsd:
docker run -d\
--name graphite\
--restart=always\
-p 80:80\
-p 2003-2004:2003-2004\
-p 2023-2024:2023-2024\
-p 8125:...
109
votes
5
answers
151k
views
How to start docker from command line in mac
I have docker desktop installed in mac. So in order to start docker, I open applications and find docker. Then I can see a docker icon at the topbar. later I can run docker commands from the command ...
108
votes
3
answers
142k
views
How to run amd64 docker image on arm64 host platform?
I have an m1 mac and I am trying to run a amd64 based docker image on my arm64 based host platform. However, when I try to do so (with docker run) I get the following error:
WARNING: The requested ...
108
votes
9
answers
53k
views
Diagnosing high CPU usage on Docker for Mac
How do I diagnose the cause of Docker on MacOS, specifically com.docker.hyperkit using 100% of CPU?
Docker stats
Docker stats shows all the running containers have low CPU, memory, net IO and block ...
106
votes
4
answers
51k
views
Docker process killed with cryptic `Killed` message
Running a python script in a docker container and everything seems to be running smoothly, seeing some STDOUT messages, about 5 minutes in I get a Killed message with no further explanation and the ...
95
votes
10
answers
18k
views
What's the right way to set up a development environment on OS X with Docker?
Intro
I can't figure out a good way to set up a development environment on OS X using Docker and Boot2Docker. The problem I'm hitting is how to manage the source code so that:
I can modify the code ...
94
votes
8
answers
155k
views
Connect to Docker MySQL container from localhost?
I have a docker mysql image running, following is what the docker-compose.yml file looks like:
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: yes
...
88
votes
6
answers
105k
views
Is it possible to install only mysqldump on macOS
Is it possible to install only mysqldump on macOS without MySQL itself.
I'm using MySQL db via Docker, but can't dump the DB from my local machine via MySQL Workbench.
/Applications/MySQLWorkbench....
86
votes
3
answers
197k
views
What does the DOCKER_HOST variable do?
I'm new to Docker, using Boot2Docker on OSX. After booting it, this message is given:
To connect the Docker client to the Docker daemon, please set
export DOCKER_HOST=tcp://192.168.59.103:2375
Yet ...
84
votes
3
answers
64k
views
How does Docker run a Linux kernel under macOS host?
I installed Docker on my macOS Sierra as follows. Note I don't have VirtualBox installed.
brew cask uninstall virtualbox
brew cask install docker
My macOS details.
$ uname -a
Darwin m-C02QG7TRG8WN....
82
votes
8
answers
69k
views
How can I fix Docker/Mac no space left on device error?
I have built a pretty big image (1G) that has a lot of "infrastructure" in it for testing (Mongo, Kafka, etc.)
When trying to start this I get no space left on device errors. How can I fix this?
...
82
votes
11
answers
93k
views
Location of docker images downloaded by Docker (1.9.1) on Mac OS X
Where are the docker images located once they are downloaded from docker hub in Mac OSX. For example if I run a command like:
docker run hello-world
the image is downloaded and the container is run ...
76
votes
3
answers
67k
views
docker no space left on device macOS
I am trying to build a docker image that requires copying some large files (~75GB) and I'm getting the following error when I run the following:
$ docker build -t my-project .
Step 8/10 : COPY some-...
71
votes
6
answers
100k
views
connection string for sqlserver in Docker container
I'm using Visual Studio 2017 for mac with dotnet Core and EF Core. After setting up the mssql image in Docker container , I was trying to add the connection string but throwing connection error. I ...
69
votes
7
answers
26k
views
Mysql not starting in a docker container on MacOS after docker update
I just upgraded to Docker Desktop 2.4 on MacOS, from version 2.3. Suddenly none of my mysql containers will start. The logs show this as the reason:
Different lower_case_table_names settings for ...
65
votes
7
answers
59k
views
I can't find my Docker image after building it
I'm new to Docker, so please allow me to describe the steps that I did. I'm using Docker (not Docker toolbox) on OS X. I built the image from Dockerfile using the following command
sudo docker build -...
62
votes
3
answers
47k
views
What is difference between Docker and Docker Desktop?
I am using a mac and apparently installing Docker Desktop is mandatory to use Docker in macOS. Why Docker Desktop is required in Mac and Windows OS, and not in Linux? What purpose Docker Desktop ...
61
votes
3
answers
49k
views
Install Docker Toolbox on a Mac via command line
I am trying to automate setting up a developer environment on Mac. Part of that setup is installing the Docker Toolbox. I cannot find any documentation on how do to this via command line. How can I ...
60
votes
5
answers
39k
views
Homebrew - Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
Homebrew gives me this error on macOS Monterey while using it:
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
How can I fix it?
60
votes
6
answers
160k
views
How could I ping my docker container from my host
I have created a ubuntu docker container on my mac
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5d993a622d23 ubuntu "/bin/bash" 42 minutes ago Up ...
58
votes
6
answers
31k
views
Is there a way to determine the size of a docker volume on my macOS machine?
I'm aware of docker volume ls and docker inspect -s, but the former doesn't show size info and the latter, even though it has a --size option, ignores it for volumes.
Is there something I'm missing?
58
votes
5
answers
69k
views
Couldn't connect to Docker daemon on Mac OS X
I would like to run multi-container application using docker-compose on Mac OS X El Capitan (v10.11.2).
However, the command $ docker-compose up command complains that it can't connect to the Docker ...
57
votes
8
answers
26k
views
How to add bash command completion for Docker on Mac OS X?
I am running docker and I want bash command completion for docker commands and parameters.
55
votes
6
answers
149k
views
How do I uninstall docker-compose?
I installed docker-compose by following the official documentation: http://docs.docker.com/compose/install/
Now I want to uninstall docker-compose.
$ docker-compose -h
offers no command for ...
54
votes
2
answers
41k
views
Is there a way to clean docker build cache?
I am running a lot of builds using Docker in MacOS. Eventually, a lot of build cache is accumulating, e.g. this is what I see in docker system df:
YPE TOTAL ACTIVE SIZE ...
53
votes
6
answers
89k
views
How can I upgrade Docker on a Mac? [closed]
I tried just 'docker-machine upgrade' and that did some work but I don't seem to have the latest CLI.
If I do 'docker version' I get:
Client:
Version: 1.8.2
API version: 1.20
Go version: ...
50
votes
2
answers
25k
views
open /Users/[user]/.docker/buildx/current: permission denied on macbook?
I ran the command docker compose up --build and it ran normally, then I tried to run it with sudo once.
and since then if I don't use sudo I get this error:
open /Users/[user]/.docker/buildx/current: ...
50
votes
4
answers
86k
views
how to fix "OperationalError: (psycopg2.OperationalError) server closed the connection unexpectedly"
Services
My service based on flask + postgresql + gunicorn + supervisor + nginx
When deploying by docker, after running the service, then accessing the api, sometimes it told the error message, and ...
49
votes
1
answer
17k
views
Why can't you install docker natively in osx?
I would love to be able to use docker outside of Vagrant in OSX. Right now this is not possible. What are the specific reasons causing it not to be limited for linux installations only?
47
votes
2
answers
8k
views
Getting message about docker wanting to create symlink every time I start Mac
(Almost) every time I start up my Mac, I get the the following message:
Docker Desktop wants to create /var/run/docker.sock symlink. Touch ID or enter your password to allow this.
Anybody knows how ...
46
votes
4
answers
84k
views
Docker image running a Mac OS X installation
I am using Docker for Mac and wish to create Docker image running a Mac El Capitan with my development env.
I am not finding any resources on this. All I see is Linux installations.
On Linux I saw ...
44
votes
6
answers
39k
views
Docker socket is not found while using Intellij IDEA and Docker desktop on MacOS
I downloaded Docker using Docker Desktop for Apple M1 chips. I can run containers, the integration with VsCode works okay but I can't integrate it with Intellij IDEA Ultimate. It keeps giving this ...
41
votes
6
answers
38k
views
Docker/Boot2Docker: Set HTTP/HTTPS proxies for docker on OS X
In short: How can I set the HTTP/HTTPS proxies for Docker on Mac OS X?
In detail:
I run Docker (1.12) on Mac OS X behind a proxy. I followed the installation instructions and installed ...
39
votes
7
answers
54k
views
docker-compose command not available for mac
I installed docker with the instructions here, downloading from docker-hub
https://docs.docker.com/docker-for-mac/install/
But when I run docker-compose I get this error
pyenv: docker-compose: ...
39
votes
4
answers
70k
views
Docker deamon config path under mac os
I am using docker in Version 1.12.0 (build 10871) on Mac OS (El Capitan 10.11.4) and I want to provide a config file for the docker daemon.
Under Ubuntu you place the config under /etc/default/docker ...
38
votes
4
answers
74k
views
Connecting to mongo docker container from host
I'm running Docker on OS X with:
docker run --name mongo -p 27017:27017 -v ./data/db:/data/db -d mongo mongod
and using the ip I get from:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' ...
38
votes
4
answers
30k
views
"exec format error" when running containers build with Apple M1 Chip (ARM based systems)
Expected behavior: I can run a container I've built using an Apple M1 chip.
Observed behavior:
Assuming you have a Google Cloud Run account and can push Docker images to Google Container Registry. I'm ...
37
votes
9
answers
22k
views
Docker machine timeout - how to fix without destroying the machine?
I'm having a recurring problem with Docker Machine - every few days it decides to timeout and I am unable to recover it once this happens.
Example
docker-machine ls
NAME ACTIVE DRIVER ...