I am totally new to docker and recently I follow "The Docker Book" from James to learn about docker by myself. The OS I am using is OSX. The tool I am using to run docker is Docker Desktop for Mac (BTW, Is that a docker-toolbox I am using?).
When I follow the book to run the following code:
$ sudo docker run --log-driver="syslog" --name daemon_dwayne -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done"
The terminal returns:
docker: Error response from daemon: failed to initialize logging driver: Unix syslog delivery error.
So I tried to use docker-machine ssh
to connect to the Docker Toolbox VM, but the terminal returns:
Error: No machine name(s) specified and no "default" machine exists
After that I downloaded the Boot2Docker iso file and successfully created a docker-machine named "dev".
- So the first question is: **Is there already an internal docker-machine before I created that "dev"?
- If not, why can I run a ubuntu docker container before creating dev?
So I think clarify these concepts would be helpful:
- "Docker Toolbox"
- "docker-machine"
- "Docker Container"
I thought the "Docker toolbox" is a software running on Mac/PC that contains a Linux VM. So that we can create "Docker containers" on that VM.
But what is "docker-machine"? And what's the relationship between a "docker-machine" and that "Linux VM" running on my OS?
Could anyone please help me with these concepts?