- according to the official document docker desktop on MAC vs. docker toolbox, docker desktop on Mac only provides
UNIX
socket/var/run/docker.socket, and does not provide TCP listening (default 2375 port). If you configure host
in docker desktop using the configuration method of Linux, Docker desktop cannot be started. You need to delete the hosts configuration in ~ /. Docker/daemon.json to start normally. The following method exposes 2375 TCP OL>
docker run --rm -d -v /var/run/docker.sock:/var/run/docker.sock -p 127.0.0.1:2375:2375 bobrik/socat TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
- then view the current docker engine version through docker version, such as 1.40. View the official engine API document: https://docs.docker.com/engine/api Search for an image to test: OL>
$curl -XGET http://127.0.0.1:2375/version | python -mjson.tool
{
"ApiVersion": "1.41",
"Arch": "amd64",
"BuildTime": "2021-07-30T19:52:10.000000000+00:00",
"Components": [
{
"Details": {
"ApiVersion": "1.41",
"Arch": "amd64",
"BuildTime": "2021-07-30T19:52:10.000000000+00:00",
"Experimental": "false",
"GitCommit": "75249d8",
"GoVersion": "go1.16.6",
"KernelVersion": "5.10.47-linuxkit",
"MinAPIVersion": "1.12",
"Os": "linux"
},
"Name": "Engine",
"Version": "20.10.8"
},
{
"Details": {
"GitCommit": "e25210fe30a0a703442421b0f60afac609f950a3"
},
"Name": "containerd",
"Version": "1.4.9"
},
{
"Details": {
"GitCommit": "v1.0.1-0-g4144b63"
},
"Name": "runc",
"Version": "1.0.1"
},
{
"Details": {
"GitCommit": "de40ad0"
},
"Name": "docker-init",
"Version": "0.19.0"
}
],
"GitCommit": "75249d8",
"GoVersion": "go1.16.6",
"KernelVersion": "5.10.47-linuxkit",
"MinAPIVersion": "1.12",
"Os": "linux",
"Platform": {
"Name": "Docker Engine - Community"
},
"Version": "20.10.8"
}
Read More:
- How to Use Apt get Command Under Mac OSX
- com.docker.osx.hyperkit.linux failed to start Exit code 1
- ruby 2.1.1 rails 4.2.0 Install gemset mysql command line tool for mac osx
- Docker start error: failed to start docker application container engine.
- docker Error response from daemon: Bad response from Docker engine
- Docker command error during connect: get http://2F2F.2Fpipe2Fdocker_ engine/v1.36/containers/json: open//.
- docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.‘, File
- NACOS error com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/instance
- [Solved] com.alibaba.nacos.api.exception.NacosException: failed to req API
- Mac computer logs into docker and reports an error
- Nginx redirects the interfac /API to another interface/API
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- systemctl start docker Job for docker.service failed because the control process exited with error
- docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled
- Solve Linux docker pull error get https://registry-1.docker.io/v2/ : Net / http: TLS handshake timeout
- MySQL error STORAGE ENGINE failed
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- [solved] genymotion, “unable to load VirtualBox engine”
- ansoft:Com Engine non-responsive since
- Mac: how to show hidden files under Apple Mac operating system