vfarcic / docker-flow

Docker Flow: Walkthrough
https://technologyconversations.com/2016/04/18/docker-flow/
MIT License
187 stars 31 forks source link

trying to use generic driver, instead of virtualbox #6

Open fschaffa opened 8 years ago

fschaffa commented 8 years ago

When trying to build a docker-machine using generic driver, it failed. Running on a MacOS 10:10:5, connecting to a clean version of Ubuntu 14.04. Docker log from remote machine attached /var/log/upstart/docker.log docker.txt

Any clues? Thanks, frank frank.schaffa@gmail.com Here is the terminal view:

frankscaffasmbp:docker-flow frankschaffa$ docker-machine create \

--driver generic \ --generic-ip-address=9.12.235.184 \ --generic-ssh-user=root \ --swarm --swarm-master \ --swarm-discovery="consul://9.12.247.254:8500" \ --engine-opt="cluster-store=consul://9.12.247.254:8500" \ --engine-opt="cluster-advertise=eth1:2376" \ swarm-master Running pre-create checks... Creating machine... (swarm-master) No SSH key specified. Connecting to this machine now and in the future will require the ssh agent to contain the appropriate key. Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with ubuntu(upstart)... Installing Docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Configuring swarm... Error creating machine: Error running provisioning: Unable to pull image: Post https://9.12.235.184:2376/v1.15/images/create?fromImage=swarm%3Alatest: dial tcp 9.12.235.184:2376: getsockopt: connection refused frankscaffasmbp:docker-flow frankschaffa$

vfarcic commented 8 years ago

Hi,

I never used Docker Machine with the generic driver. In my case, I'm using Docker Machine with VirtualBox on my laptop and use it only for demos and workshops. In "real" setting, I tend to provision machines with Ansible since it allows me to setup everything (not only Docker/Swarm) and has the notion of state. Ansible playbook is in the repository and used in https://technologyconversations.com/2016/04/18/docker-flow/. I can help you run it in your environment.

Back to your problem... In a few cases, I've seen the same error due to temporary problems in Docker Hub. If, after a short while, it is not resolved, the problem is most likely in your network. Judging by the error message seems that something is blocking the outgoing traffic. Do you have firewalls that block the outgoing traffic?

Maybe we can schedule a chat with Skype and HangOuts? If you would share your screen, together we would probably be able to find the problem fast.

fschaffa commented 8 years ago

HI, Yes, it would be great if you could help me set up the environment. Skype would work. I'm in EDT time. You can also reach me directly: frank.schaffa@gmail.com Thanks, frank

vfarcic commented 8 years ago

Hi,

I'll spend most of this week in CraftConf and won't be able to connect until I get back home. Would next Monday (the 2nd) suit you? I'm in CET time (six hours in front of you) so it could be my afternoon / your morning. I the next Monday is not too late for you.

On Tue, Apr 26, 2016 at 12:35 PM fschaffa notifications@github.com wrote:

HI, Yes, it would be great if you could help me set up the environment. Skype would work. I'm in EDT time. You can also reach me directly: frank.schaffa@gmail.com Thanks, frank

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/vfarcic/docker-flow/issues/6#issuecomment-214697559

Viktor Farcic

Blog: TechnologyConversations.com

Books: The DevOps 2.0 Toolkit (http://www.amazon.com/dp/B01BJ4V66M or https://leanpub.com/the-devops-2-toolkit) Test-Driven Java Development ( http://www.amazon.com/Test-Driven-Java-Development-Viktor-Farcic-ebook/dp/B00YSIM3SC )

fschaffa commented 8 years ago

Next Monday will work. Thanks, frank

On Tue, Apr 26, 2016 at 6:41 AM, Viktor Farcic notifications@github.com wrote:

Hi,

I'll spend most of this week in CraftConf and won't be able to connect until I get back home. Would next Monday (the 2nd) suit you? I'm in CET time (six hours in front of you) so it could be my afternoon / your morning. I the next Monday is not too late for you.

On Tue, Apr 26, 2016 at 12:35 PM fschaffa notifications@github.com wrote:

HI, Yes, it would be great if you could help me set up the environment. Skype would work. I'm in EDT time. You can also reach me directly: frank.schaffa@gmail.com Thanks, frank

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/vfarcic/docker-flow/issues/6#issuecomment-214697559

Viktor Farcic

Blog: TechnologyConversations.com

Books: The DevOps 2.0 Toolkit (http://www.amazon.com/dp/B01BJ4V66M or https://leanpub.com/the-devops-2-toolkit) Test-Driven Java Development (

http://www.amazon.com/Test-Driven-Java-Development-Viktor-Farcic-ebook/dp/B00YSIM3SC )

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/vfarcic/docker-flow/issues/6#issuecomment-214698670