Docker Community Forums

Share and learn in the Docker community.

Dockerf for mac is slover than Docker Machine

beta

(Alexeev) #1

Hi!
I apologize in advance for my english. I’m Russian ;3
My Rails application in Docker for Mac is slower than in Docker Machine. I don’t know why.
I’m using MacBook Air (13-inch, Early 2014) with OS X 10.11.4 (15E65) and Docker for Mac Version 1.11.1-beta11 (build: 6974)
I put in the settings 1 CPUs and 2 of 4 GBs of RAM (i tried 4 CPUs and 4 GBs. CPUs it’s is threads of CPU?)
In logs i found these rows:

May 13 14:00:20 Alexeev-Macbook Docker[50031]: TCP 169.254.169.254:80 > 192.168.65.2:42376 rejected: Socket.TCPV4.connect_v4 169.254.169.254:80: Lwt_unix.connect: caught Unix.Unix_error(Unix.ETIMEDOUT, “connect”, “”)
May 13 10:32:42 Alexeev-Macbook Docker[50031]: Socket.TCPV4.read 50.31.164.145:443: caught Unix.Unix_error(Unix.ECONNRESET, “read”, “”) returning Eof
May 13 10:25:15 Alexeev-Macbook Docker[50031]: PPP.listen callback: caught Unix.Unix_error(Unix.ENOENT, “open”, “/etc/resolv.conf”) [a lot of]
May 12 17:32:49 Alexeev-Macbook Docker[50031]: DNS response timed out after 5s
May 12 17:32:54 Alexeev-Macbook Docker[50031]: recvfrom failed with Lwt.Canceled
May 12 17:32:54 Alexeev-Macbook Docker[50031]: DNS response timed out after 5s
May 12 17:32:59 Alexeev-Macbook Docker[50031]: recvfrom failed with Lwt.Canceled
May 12 17:32:59 Alexeev-Macbook Docker[50031]: DNS response timed out after 5s

May be these logs will help you to help me?
https://yadi.sk/d/GKT_Yoqurg4Q7 - pinata diagnose -u log on russian «Yandex Disk» cloud
My Dockerfile:
FROM ruby:2.3.1 MAINTAINER vyacheslav@alexeev.it, palpatinen@gmail.com RUN apt-get update && apt-get install -y build-essential libpq-dev && apt-get install -y zsh RUN gem install rubygems-bundler ENV app /app RUN mkdir -p $app WORKDIR $app ENV BUNDLE_PATH /box ENV RAILS_ENV=development ADD . $app
Thank you!