A running list of commands and utilities to move around the fabric
1. Docker
-
Log into a running docker container
docker exec -it CONTAINER_NAME /bin/bash
-
See the log for a docker container
docker logs -f CONTAINER_NAME
-
Get some live stats for on all your containers
docker stats $(docker ps -q)
2. Maven & Fabric8
The following commands use the Maven Fabric8 Plugin
-
Create a Docker image of your application
mvn clean install -Pdocker-build
-
Start a new container on fabric8
mvn fabric8:apply -Dfabric8.recreate=true -Ddocker-build