Questions tagged [docker-machine]

docker-machine creates Docker Engines on your computer, on cloud providers, and/or in your data center, and then configures the Docker client to securely talk to them.

Once your Docker host has been created, it then has a number of commands for managing them:

  • Starting, stopping, restarting
  • Upgrading Docker
  • Configuring the Docker client to talk to your host

Source

1691 questions
51
votes
6 answers

Port forwarding in docker-machine?

Since boot2docker is deprecated I've switched to docker-machine but I don't know how to open a port from docker-machine. In boot2docker I could do like this: boot2docker ssh -L 27017:localhost:27017 This would forward port 27017 from VirtualBox to…
Johan
  • 37,479
  • 32
  • 149
  • 237
50
votes
12 answers

Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"

i run CentOS in VirtualBox on physical Windows7. Now in centOS i have Docker and i need to run docker-machine create --driver virtualbox host1 but i get error Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed…
toto'
  • 1,325
  • 1
  • 17
  • 36
47
votes
4 answers

Failed to get D-Bus connection: Operation not permitted

I'm trying to install ambari 2.6 on a docker centos7 image but in the the ambari setup step and exactly while initializing the postgresql db I receive this error: Failed to get D-Bus connection: Operation not permitted I've got this error every…
fadhloun anis
  • 525
  • 1
  • 6
  • 13
41
votes
4 answers

How to access files in host from a Docker Container?

I have a Docker Ubuntu Bionic container on A Ubuntu server host. From the container I can see the host drive is mounted as /etc/hosts which is not a directory. Tried unmounting and remounting on a different location but throws permission denied…
Just Khaithang
  • 1,217
  • 1
  • 14
  • 24
41
votes
5 answers

sudo: docker-machine: command not found

who has ever tried following this tutorial about Docker Swarm? https://docs.docker.com/get-started/part4/ There is a section called : Create a cluster. What I wanted to do was to create a couple of VMs using docker-machine. Since I use ubuntu16.0.4…
CHRIS LEE
  • 776
  • 3
  • 10
  • 20
40
votes
3 answers

Importing self-signed cert into Docker's JRE cacert is not recognized by the service

A Java Service is running inside the Docker container, which access the external HTTPS url and its self-sign certificate is unavailable to the service/ JRE cacert keystore and therefore connection fails. Hence imported the self-signed certificate…
Zeigeist
  • 3,755
  • 3
  • 20
  • 22
37
votes
9 answers

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 STATE URL SWARM DOCKER ERRORS default …
Josh Cole
  • 1,522
  • 2
  • 12
  • 19
36
votes
1 answer

.docker/config.json vs .dockercfg

When I do a docker login to a private repository using docker 1.10.1, an entry is created in my ~/.docker/config.json file. Is this file in the same format as what I see being called a .dockercfg file? Is the config.json file interchangeable with…
Erik
  • 7,479
  • 8
  • 62
  • 99
36
votes
3 answers

Docker daemon config file on boot2docker / docker-machine / Docker Toolbox

Where can I find docker daemon config file on boot2docker machine? According to this topic: Dockerfile: Docker build can't download packages: centos->yum, debian/ubuntu->apt-get behind intranet I want to set '--dns' in DOCKER_OPTS, but I can't…
anaid
  • 921
  • 3
  • 11
  • 13
35
votes
1 answer

What is the difference between docker-machine and docker-compose?

I think I don't get it. First, I created docker-machine: $ docker-machine create -d virtualbox dev $ eval $(docker-machine env dev) Then I wrote Dockerfile and docker-compose.yml: FROM python:2.7 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR…
User
  • 1,978
  • 5
  • 26
  • 47
35
votes
5 answers

allow insecure registry in host provisioned with docker-machine

Is there anyway to configure --allow-insecure-ssl for docker's deamon created with docker-machine. commands: docker-machine create --driver virtualbox dev eval "$(docker-machine env dev)" docker run myregistry:5000/busybox:latest echo 'hello…
Montells
  • 6,389
  • 4
  • 48
  • 53
34
votes
16 answers

Error checking TLS connection: Error checking and/or regenerating the certs

After I restarted my windows i cannot connect to docker machine running in Oracle Virtual Box. When i start Docker QuickStart Terminal every thing looks fine, it's coming up OK and it gives me this message: docker is configured to use the default…
Hazhir
  • 780
  • 1
  • 6
  • 18
34
votes
5 answers

How do I undo the command $ eval "$(docker-machine env blog)"

I think that command redirected $ docker commands to the docker machine. Now all my docker commands are giving me an error FATA[0000] Couldn't read ca cert... follwed by the path to the docker-machine I created. How can I fix my shell?
JAstuccio
  • 1,502
  • 2
  • 18
  • 20
33
votes
8 answers

docker-machine: command not found

I recently upgraded Docker Desktop for Mac to version 2.2.0.0, and now when try to run a docker-machine command I am getting an error: $ docker-machine --version docker-machine: command not found Docker Machine used to be installed with Docker,…
wogsland
  • 9,106
  • 19
  • 57
  • 93
32
votes
6 answers

docker-machine behind corporate proxy

I am trying to use docker-machine to create an instance on a private cloud (Openstack) that is behind a corporate http proxy. Is it possible to tell docker-machine to use the proxy or do I need to have a glance image that is already pre-configure…
eighilaza
  • 490
  • 1
  • 4
  • 12