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