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

Docker: 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
  • 6,701
  • 7
  • 26
  • 42
338
votes
23 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
  • 4,204
  • 4
  • 15
  • 24
332
votes
12 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
  • 3,672
  • 2
  • 13
  • 13
261
votes
8 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
  • 12,282
  • 16
  • 70
  • 135
205
votes
20 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
  • 87,243
  • 191
  • 450
  • 722
149
votes
8 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
  • 12,696
  • 8
  • 28
  • 36
145
votes
5 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,511
  • 2
  • 10
  • 9
136
votes
9 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
  • 4,508
  • 5
  • 24
  • 40
135
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…
zanini
  • 1,463
  • 2
  • 10
  • 9
133
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,912
  • 2
  • 15
  • 27
121
votes
8 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
  • 3,345
  • 11
  • 41
  • 52
100
votes
3 answers

Docker process killed with cryptic `Killed` message

Running a python script in a docker container and everything seems to be running smoothly, seeing some STDOUT messages, about 5 minutes in I get a Killed message with no further explanation and the process stops. Querying a db so could be a disk…
natsuki_2002
  • 24,239
  • 21
  • 46
  • 50
89
votes
7 answers

How to reach docker containers by name instead of IP address?

Is there a way I can reach my docker containers using names instead of ip addresses? I've heard of pipework and I've seen some dns and hostname type options for docker, but I still am unable to piece everything together. Thank you for your time. I'm…
Zhao Li
  • 4,936
  • 8
  • 33
  • 51
88
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
  • 22,016
  • 18
  • 111
  • 153
86
votes
6 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
  • 5,037
  • 4
  • 30
  • 43
1
2 3
99 100