Docker is a system to build containers and ship them to server. When Meteor is installed in a docker container, everything needed to run a meteor app is in the container. To run a meteor app on a new machine, download the meteor container and start it with docker.
- Run ‘Hello World’
- Docker commands
Run all the commands below as root.
1- Install (Debian Jessie)
Install the package from apt, this is an older docker version:
docker.io is in debian unstable, add this line your apt/source.list:
Or download the docker binary from the web:
Now, you can remove the unstable source from your apt/source.list.
2- Run ‘Hello World’
This command does the following steps:
- download the image of ubuntu 14.04 from docker hub
- create and start a container
- run the command /bin/echo ‘Hello world’ in the container
Docker hub is a public repository of docker images, lots of software is already packaged in docker images. Just run the command docker run image_name to start using them.
3- Docker commands
Lists running containers
Lists all containers
Stops a container
Opens a terminal in an ubuntu container. Option -t is for terminal Option -i is for interactive
Futher reading: see docker docs