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

1543 questions
306
votes
19 answers

How to clear the logs properly for a Docker container?

I use docker logs [container-name] to see the logs of a specific container. Is there an elegant way to clear these logs?
Youssouf Maiga
  • 4,251
  • 5
  • 20
  • 34
218
votes
9 answers

Docker is in volume in use, but there aren't any Docker containers

EDIT (2/19/21): A lot of time has elapsed since I asked this original question years ago and I've seen a flurry of activity since then. I re-selected an answer which I think is consistent with the most localized and safe option for solving this…
Tkwon123
  • 2,482
  • 2
  • 8
  • 12
204
votes
19 answers

Network timed out while trying to connect to https://index.docker.io

I installed Docker-Toolbox just now while following their webpage I started with Docker QuickStart Terminal and see following ## . ## ## ## == ## ## ## ## ## === …
daydreamer
  • 73,989
  • 165
  • 410
  • 667
139
votes
12 answers

Is it safe to clean docker/overlay2/

I got some docker containers running on AWS EC2, the /var/lib/docker/overlay2 folder grows very fast in disk size. I'm wondering if it is safe to delete its content? or if docker has some kind of command to free up some disk usage. UPDATE: I…
qichao_he
  • 2,009
  • 2
  • 13
  • 20
138
votes
7 answers

Docker Machine: No space left on device

I'm trying to set up Docker Machine with Docker Compose. Scenario 1 (without Docker Machine) If I run docker-compose up -d without Docker Machine, it creates my 3 linked containers as intented (nginx+mongodb+nodejs). Scenario 2 (with Docker…
Marc Perrin-Pelletier
  • 9,786
  • 7
  • 23
  • 33
137
votes
5 answers

How do I run a docker instance from a DockerFile?

I finally figured out how to get docker up and running. docker run --name my-forum-nodebb --link my-forum-redis:redis -p 80:80 -p 443:443 -p 4567:4567 -P -t -i nodebb/docker:ubuntu I linked it to a redis instance, cool. This is from scratch and I…
Michael Joseph Aubry
  • 8,880
  • 13
  • 54
  • 110
112
votes
7 answers

How to increase docker-machine memory Mac

I am new to Docker, and trying to go through this tutorial setting up MemSQL from a Docker image - http://docs.memsql.com/4.0/setup/docker/ . I am on a Mac, and the tutorial uses boot2docker which seems to have been deprecated. The VM needs 4GB…
DJElbow
  • 2,905
  • 10
  • 37
  • 51
110
votes
4 answers

Docker - image operating system "windows" cannot be used on this platform

I tried this on my Windows 10 machine: Dockerfile: From microsoft/nanoserver CMD ["echo", "Hello World"] PS C:\FSD\Docker\Trial1> docker build -t lea/leatest . Sending build context to Docker daemon 2.048kB Step 1/2 : FROM…
Lea A
  • 1,151
  • 2
  • 8
  • 8
104
votes
5 answers

How does Docker Swarm implement volume sharing?

Docker Swarm can manage two types of storage: volume and bind While bind is not suggested by Docker Documentation since it creates a binding between a local directory (on each swarm Node) to a task, the volume implementation is not mentioned, so I…
alessandro308
  • 1,381
  • 2
  • 9
  • 18
94
votes
7 answers

Command for restarting all running docker containers?

How to restart all running docker containers? Mainly looking for a shortcut instead of doing docker restart containerid1 containerid2
Ranjith's
  • 3,508
  • 4
  • 19
  • 35
91
votes
1 answer

How can I use a local file on container?

I'm trying create a container to run a program. I'm using a pre configurate image and now I need run the program. However, it's a machine learning program and I need a dataset from my computer to run. The file is too large to be copied to the…
gomesh
  • 1,023
  • 1
  • 6
  • 8
84
votes
8 answers

How to ssh into docker-machine VirtualBox instance?

docker-machine version 0.2.0 docker version 1.6.2 I'm using docker-machine to create a machine using VirtualBox. Everything works fine but I'd like to ssh into the machine itself and I find no instructions on how to do this. I can connect to the…
Roy Truelove
  • 20,716
  • 17
  • 105
  • 152
84
votes
14 answers

Docker error: client and server don't have same version

Since I just updated Docker to 1.1.0 I get: Error response from daemon: client and server don't have same version (client : 1.13, server: 1.12) Do you know how to fix this? I switched back to 1.0.1 and everything works again.
soenke
  • 993
  • 1
  • 7
  • 7
82
votes
3 answers

How to access the VM created by docker's HyperKit?

Docker for Mac uses a Linux VM created by HyperKit for storing and running containers on Mac. With Docker Toolbox, I can just open VirtualBox and access the docker-machine VM. But with Docker for Mac, how do I access the VM created by HyperKit?
Jifeng Zhang
  • 4,807
  • 4
  • 27
  • 41
74
votes
13 answers

Change Docker machine location - Windows

I am using docker toolbox on Windows 7 to run docker. (docker version 1.9.1) As it turns out, the docker machine creates its VM at C:\Users\username\.docker\machine\machines\default. As I commit the images, the size of VM at this location bloats up.…
shrivb
  • 1,391
  • 3
  • 12
  • 20
1
2 3
99 100