xxxxxxxxxx
docker build -t imageName:imageTag pathToDockerfileDirectory/
Example:
docker build -t vieux/apache:2.0 .
Docker build command with custom tag (you can specify a custom Dockerfile by adding the -f path-to/Dockerfile)
xxxxxxxxxx
docker build -t my-image-tag .
After you can run your container and bind port 3000 with docker run -dp 3000:3000 my-image-tag
xxxxxxxxxx
docker build -t <image-name> <relative-file-path>
" . " => current working directory
docker build -t server-image .
xxxxxxxxxx
--tag , -t ----> Name and optionally a tag in the ‘name:tag’ format