
Cheat Sheet
Whether you are new to Containers or have experience, you may find yourself encountering tasks you haven’t done lately. That is where the cheat sheet can help.
In this Containers cheat sheet, you will find:
Save this cheat sheet or print to take it with you.
docker
CLI
docker [CMD] [OPTS] [CONTAINER]
#Run a bash shell inside an image
$ docker run -it rhel7/rhel bash
#Check the release inside a container
[root@.../]# cat /etc/redhat-release
$ docker run --name mywild y -d -p 8080:8080 jboss/wild y
$ docker network create mynetwork
$ docker run --name mywild y-net -d --net mynetwork
-p 8080:8080 jboss/wild y
$ docker run --name mywild y-volume -d
-v myfolder/:/opt/jboss/wild y/standalone/deployments/
-p 8080:8080 jboss/wild yjboss/wild y
$ docker logs -f mywild y
$ docker logs -f [container-name]