docker-for-mac

Docker [for mac] file system became read-only which breaks almost all features of docker

旧街凉风 提交于 2019-12-11 04:06:46
问题 My Docker ran into an error state, where I cannot use it anymore. output of docker system info : Containers: 14 Running: 2 Paused: 0 Stopped: 12 Images: 61 Server Version: 18.03.1-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: error NodeID:

Xdebug with SSH tunnel on Docker for Mac

旧街凉风 提交于 2019-12-08 06:26:15
问题 I was reading a lot of posts from the Docker community recently on how to debug PHP application in the PHPStorm with the Docker for Mac. All of them contains pieces of useful information, but haven’t seen working solution in one place. 回答1: Here is what did work for me. Inside Docker Container Edit xdebug configuration # automatically start debugger on every request xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_port=9000 # send all debug requests to 127.0.0.1, remote_connect

Starting an Ingress service on Docker for Mac

五迷三道 提交于 2019-12-07 05:04:16
问题 Update: Using: kubectl expose deployment <Name-Of-Servce> --name=loadbalancer --port=8080 --target-port=8080 --type=LoadBalancer The kubectl get services is showing pending: loadbalancer LoadBalancer <x.x.x.x> <pending> 8080:32670/TCP 2m Before Docker surported Kubernetes, I could use MiniKube and Helm: helm install stable/jenkins kubectl get services // To get the service name minikube service original-llama-jenkins // << The service name Now that we have Docker for Mac(Edge) supporting

Starting an Ingress service on Docker for Mac

房东的猫 提交于 2019-12-05 10:27:54
Update: Using: kubectl expose deployment <Name-Of-Servce> --name=loadbalancer --port=8080 --target-port=8080 --type=LoadBalancer The kubectl get services is showing pending: loadbalancer LoadBalancer <x.x.x.x> <pending> 8080:32670/TCP 2m Before Docker surported Kubernetes, I could use MiniKube and Helm: helm install stable/jenkins kubectl get services // To get the service name minikube service original-llama-jenkins // << The service name Now that we have Docker for Mac(Edge) supporting Kubernetes, how do you add an EXTERNAL-IP ? Thanks Unless something seriously magical has happened with

How can I speed up node.js react startup in a Docker container

吃可爱长大的小学妹 提交于 2019-12-05 02:06:14
问题 I am running node js official image inside Docker container and I noticed that the npm start command takes a lot longer to start than when it's outside of Docker. Are there settings that I can change to make it run faster? Perhaps allocating more memory to the container? For reference I will paste relevant files below. Dockerfile: FROM node:8.1 WORKDIR var/www/app # Global install yarn package manager RUN apt-get update && apt-get install -y curl apt-transport-https && \ curl -sS https://dl

Docker for Mac - Kubernetes - reference local image

天大地大妈咪最大 提交于 2019-12-04 17:53:04
问题 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 : apiVersion: apps/v1 kind: Deployment metadata: name: helloworld-deployment spec: selector: matchLabels: app: helloworld replicas: 1 template: metadata: labels: app: helloworld spec: containers: - name: aaa image: test:latest ports: - containerPort: 8080 When i

How can I speed up node.js react startup in a Docker container

时光毁灭记忆、已成空白 提交于 2019-12-03 17:09:39
I am running node js official image inside Docker container and I noticed that the npm start command takes a lot longer to start than when it's outside of Docker. Are there settings that I can change to make it run faster? Perhaps allocating more memory to the container? For reference I will paste relevant files below. Dockerfile: FROM node:8.1 WORKDIR var/www/app # Global install yarn package manager RUN apt-get update && apt-get install -y curl apt-transport-https && \ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main"

Docker for Mac - Kubernetes - reference local image

允我心安 提交于 2019-12-03 10:42:43
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 : apiVersion: apps/v1 kind: Deployment metadata: name: helloworld-deployment spec: selector: matchLabels: app: helloworld replicas: 1 template: metadata: labels: app: helloworld spec: containers: - name: aaa image: test:latest ports: - containerPort: 8080 When i run kubectl apply -f deplyment.yaml pods are created but: helloworld-deployment-764b8b85d8-2c4kl 0/1

docker swarm init could not choose an IP address error

删除回忆录丶 提交于 2019-12-03 10:03:36
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 swarm init \ --secret my-secret \ --auto-accept worker \ --listen-addr $(docker-machine ip node-1):2377 The last command ( docker swarm init ) returns this error: Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses I have no idea what's going on. Anyone have any idea how to debug? Update 2017

What is linux equivalent of “docker.for.mac.host.internal”

旧街凉风 提交于 2019-12-03 05:45:59
问题 On Mac and Windows it is possible to use docker.for.mac.host.internal (replaces docker.for.mac.localhost ) and docker.for.win.host.internal (replaces docker.for.win.localhost ) 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. 回答1: Depends what you're trying to do. If you're running with --net=host , localhost should work fine. If you're using default networking