Docker

Docker is quickly becoming one of my favourite tools in software engineering. It makes installing software easier and cleaner.

Docker

Common Docker Commands

Building a Docker Image

Format:

docker build -t [image name]:[tag] [path name]

Example:

docker build -t registry.gitlab.com/firsttiger/mattermost-docker:5.16.3 .

Pushing a Docker Image

Format:

docker push [image name]:[tag]

Example

docker push registry.gitlab.com/firsttiger/mattermost-docker:5.16.3

Running bash from the container

docker exec -it bunch-of-stuff bash