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
24
votes
3 answers

How to fix expired client cert in docker-machine

Doing a docker-machine ls a got the unexpected Unable to query docker version: Get https://x.x.x.x:2376/v1.15/version: x509: certificate has expired or is not yet valid for every machine. I hadn't done anything recently. Looking on SO, I tried…
rubyisbeautiful
  • 1,840
  • 1
  • 16
  • 15
24
votes
8 answers

Docker says: No connection could be made because the target machine actively refused it

I was using docker everyday but today a problem occurred without changing anything. I opened docker terminal and tried to start one of my containers. But it gave this error: "No connection could be made because the target machine actively refused…
Uchiha Itachi
  • 850
  • 2
  • 10
  • 15
23
votes
2 answers

Get previous command in docker container console

Docker-toolbox is installed on the windows machine. I go into the container, for example: docker exec -it web / bin / sh I can enter commands there. How to access the history of input commands inside a container? In all consoles, this is done using…
sveta600
  • 439
  • 4
  • 8
23
votes
3 answers

Docker run script in host on docker-compose up

My question relates to best practices on how to run a script on a docker-compose up directive. Currently I'm sharing a volume between host and container to allow for the script changes to be visible to both host and container. Similar to a watching…
Ilhicas
  • 1,429
  • 1
  • 19
  • 26
23
votes
6 answers

How do I check that a docker host is in swarm mode?

After executing this; eval $(docker-machine env mymachine) How do I check if the docker daemon on mymachine is a swarm manager?
Ernest Okot
  • 880
  • 3
  • 8
  • 23
23
votes
3 answers

How is a Docker Machine marked as active?

I am working through the Docker Machine User Guide over at https://docs.docker.com/v1.5/machine/. It says: You can see the machine you have created by running the docker-machine ls command again: $ docker-machine ls NAME ACTIVE DRIVER …
Jay Killeen
  • 2,832
  • 6
  • 39
  • 66
23
votes
2 answers

Why docker login command saves unencrypted password on my computer?

I've used docker login command and passed my credentials and I got warning WARNING: login credentials saved in /Users/{my_username}/.docker/config.json. I've checked that file and indeed my password is there unencrypted (base64 encoded only). Why…
user606521
  • 14,486
  • 30
  • 113
  • 204
22
votes
8 answers

OCI runtime exec failed: exec failed: container_linux.go:344: starting container process

When i run the below command $ docker container exec -it nginx1 ping nginx2 This is the error which i faced : OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"ping\": executable file not…
Jakka rohith
  • 475
  • 2
  • 7
  • 15
22
votes
4 answers

How do I forward a docker-machine port to my host port on OSX?

I’m delivering a private docker container in my company and want my colleagues to be able to access in our internal network, the problem is that my guest OS is OSX and as so I can only access my application using the 192.168.99.100:3000 default ip…
Juliano Pacheco
  • 521
  • 1
  • 5
  • 13
21
votes
3 answers

Jenkins Docker container with root permissions?

I want to build a jenkins docker container with root permissions so that i can us apt-get feature to install gradle. I am using this command to run jenkins on 8080 port but i also want to add gradle as enviornment variable : docker run -p 8080:8080…
Sidharth
  • 1,402
  • 2
  • 16
  • 37
21
votes
11 answers

Docker-machine error "Could not find matching IP for MAC address" on Windows 10

I got strange problem with docker-machine on windows 10. And I still cannot find solution. It used to work before, but after some update of Windows 10 I began to get error "Could not find matching IP for MAC address ...". This error appears on any…
Vadim
  • 1,336
  • 2
  • 10
  • 10
21
votes
5 answers

Rename docker machine

How can I rename a docker-machine machine? I can't find it using docker-machine --help or in the subcommand docs.
Dag Høidahl
  • 7,873
  • 8
  • 53
  • 66
20
votes
2 answers

Run a NOT headless chrome on a docker container

Running chrome on docker machines is only possible when chrome is headless. Unfortunately, headless chrome can't ignore certificate errors which prevents my tests from running. I'm trying to run an already working NodeJS e2e test environment on a…
Bishok
  • 399
  • 1
  • 2
  • 9
20
votes
3 answers

docker: command not found ( mac mini ) only happens in jenkins shell step but work from command prompt

I'm facing this weird problem , struggling to solve since almost couple of days. Working: On mac mini command prompt , I switch to jenkins user and can run docker command without any problem. Not Working: but when I run a jenkins job , inside shell…
vikramvi
  • 3,312
  • 10
  • 45
  • 68
20
votes
3 answers

Move boot2docker and .docker folder in other drive

I'm new in docker. I have installed docker in windows in the D drive but the Boot2docker VM is in the user folder in the C drive. I dont have enough space in the C and the boot2docker is growing when i pull softwares from the docker hub. So I want…
berzeker
  • 203
  • 2
  • 5