the docker cli client lets you manage your images & containers via a wrapper on api:
Get docker comfiguration:
docker system info
Create a docker image tagged w. a name w. docker build:
docker build -t <yourusername/yourappname> .
Run an image/start a container with docker run:
docker run -publish <yourport>:<containerport> --detach <your username>/<your app>
Get inside a container:
docker exec -it <container id> /bin/bash
dockerengine runs in a vm environment. You can have several vm's (both locally and on remote servers). docker-machine lets you manage these.
Get configuration:
docker-machine inspect
List/Start/Stop/status your vm's:
docker-machine ls/start/stop/status
Swarms allow you to deploy an application with clusters of containers to scale, each defined as "services". Swarms are defined in "stack files":
Deploy from stack file:
docker stack deploy -c <yourstackfile>.yaml <yourswarmappname>
//creates service & network w. name
List/Remove services/networks/stacks:
docker service/network/stack ls/rm
Remove your stack:
docker stack rm <yourswarmappname>