# When docker build, docker tag is none

**URL:** <https://forums.docker.com/t/when-docker-build-docker-tag-is-none/75487>\
**Category:** General\
**Tags:** docker\
**Created:** [May 27, 2019, 4:58am UTC](https://forums.docker.com/t/when-docker-build-docker-tag-is-none/75487 "2019-05-27T04:58:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swbs90](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@swbs90](https://forums.docker.com/u/swbs90)\
**Post date:** [May 27, 2019, 4:58am UTC](https://forums.docker.com/t/when-docker-build-docker-tag-is-none/75487/1 "2019-05-27T04:58:57Z")

</div>

hello

when docker build, docker tag is none…  
i use cmd  
$ docker build .

but i used build option ‘–tag [images name]:[tag name]’  
$ docker build --tag centos:7

result is not none

What is the difference between the two commands?

thank you
