diff --git a/cekit/builders/docker_builder.py b/cekit/builders/docker_builder.py
index f3896fd..5bccc72 100644
--- a/cekit/builders/docker_builder.py
+++ b/cekit/builders/docker_builder.py
@@ -161,7 +161,7 @@ class DockerBuilder(Builder):
         return squash.run()
 
     def _tag(self, docker_client, image_id, tags):
-        for tag in tags[1:]:
+        for tag in tags:
             if ':' in tag:
                 img_repo, img_tag = tag.split(":")
                 docker_client.tag(image_id, img_repo, tag=img_tag)

Docker builder does not tag built image with all advertised tags
```
2019-03-12 20:05:28,393 cekit        INFO     Image built and available under following tags: example/rhel8:1.0, example/rhel8:latest
2019-03-12 20:05:28,393 cekit        INFO     Finished!
```

But the image is available under `example/rhel8:latest`, only.
diff --git a/tests/test_builder.py b/tests/test_builder.py
index d45a40e..234a255 100644
--- a/tests/test_builder.py
+++ b/tests/test_builder.py
@@ -460,6 +460,27 @@ def test_docker_builder_defaults():
     assert builder.params.tags == ['foo', 'bar']
 
 
+def test_docker_build_default_tags(mocker):
+    builder = DockerBuilder(Map({'target': 'something'}), Map())
+
+    docker_client_class = mocker.patch('cekit.builders.docker_builder.APIClientClass')
+    docker_client = docker_client_class.return_value
+    mock_generator = mocker.patch.object(builder, 'generator')
+    mock_generator.get_tags.return_value = ["image/test:1.0", "image/test:latest"]
+    mocker.patch.object(builder, '_build_with_docker')
+    mocker.patch.object(builder, '_squash', return_value="112321312imageID")
+
+    builder._build_with_docker.return_value = "1654234sdf56"
+
+    builder.run()
+
+    builder._build_with_docker.assert_called_once_with(docker_client)
+
+    tag_calls = [mocker.call('112321312imageID', 'image/test', tag='1.0'),
+                 mocker.call('112321312imageID', 'image/test', tag='latest')]
+    docker_client.tag.assert_has_calls(tag_calls)
+
+
 def test_docker_squashing_enabled(mocker):
     builder = DockerBuilder(Map({'target': 'something'}), Map({'tags': ['foo', 'bar']}))
 

pip install -e .[dev]
parse_log_pytest
requirements.txt
behave lxml mock pytest pytest-cov pytest-mock docker docker-squash click
apt-get update apt-get install -y gcc
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
behave==1.2.6
-e git+https://github.com/cekit/cekit.git@5309dda6a70ce24ab275ff5d3e6acfbcf72e407c#egg=cekit
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
colorlog==6.9.0
coverage==7.8.0
docker==7.1.0
docker-squash==1.2.2
docopt==0.6.2
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
Jinja2==3.1.6
lxml==5.3.1
MarkupSafe==3.0.2
mock==5.2.0
packaging==24.2
parse==1.20.2
parse_type==0.6.4
pluggy==1.5.0
pykwalify==1.8.0
pytest==8.3.5
pytest-cov==6.0.0
pytest-mock==3.14.0
python-dateutil==2.9.0.post0
PyYAML==6.0.2
requests==2.32.3
ruamel.yaml==0.18.10
ruamel.yaml.clib==0.2.12
six==1.17.0
tomli==2.2.1
urllib3==2.3.0

name: cekit
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - behave==1.2.6
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - click==8.1.8
      - colorlog==6.9.0
      - coverage==7.8.0
      - docker==7.1.0
      - docker-squash==1.2.2
      - docopt==0.6.2
      - exceptiongroup==1.2.2
      - idna==3.10
      - iniconfig==2.1.0
      - jinja2==3.1.6
      - lxml==5.3.1
      - markupsafe==3.0.2
      - mock==5.2.0
      - packaging==24.2
      - parse==1.20.2
      - parse-type==0.6.4
      - pluggy==1.5.0
      - pykwalify==1.8.0
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - pytest-mock==3.14.0
      - python-dateutil==2.9.0.post0
      - pyyaml==6.0.2
      - requests==2.32.3
      - ruamel-yaml==0.18.10
      - ruamel-yaml-clib==0.2.12
      - six==1.17.0
      - tomli==2.2.1
      - urllib3==2.3.0
prefix: /opt/conda/envs/cekit

tests/test_builder.py::test_docker_build_default_tags
tests/test_builder.py::test_osbs_builder_defaults tests/test_builder.py::test_osbs_builder_redhat tests/test_builder.py::test_osbs_builder_use_rhpkg_stage tests/test_builder.py::test_osbs_builder_custom_commit_msg tests/test_builder.py::test_osbs_builder_nowait tests/test_builder.py::test_osbs_builder_user tests/test_builder.py::test_merge_container_yaml_no_limit_arch tests/test_builder.py::test_merge_container_yaml_limit_arch tests/test_builder.py::test_osbs_builder_run_brew_stage tests/test_builder.py::test_osbs_builder_run_brew tests/test_builder.py::test_osbs_builder_run_koji tests/test_builder.py::test_osbs_builder_run_brew_nowait tests/test_builder.py::test_osbs_builder_run_brew_user tests/test_builder.py::test_osbs_builder_run_brew_target tests/test_builder.py::test_osbs_wait_for_osbs_task_finished_successfully tests/test_builder.py::test_osbs_wait_for_osbs_task_in_progress tests/test_builder.py::test_osbs_wait_for_osbs_task_failed tests/test_builder.py::test_osbs_copy_artifacts_to_dist_git[artifact0-image/some-path.jar-osbs/repo/some-path.jar] tests/test_builder.py::test_osbs_copy_artifacts_to_dist_git[artifact1-image/some-name-osbs/repo/some-name] tests/test_builder.py::test_osbs_copy_artifacts_to_dist_git[artifact2-image/some-target.jar-osbs/repo/some-target.jar] tests/test_builder.py::test_osbs_copy_artifacts_to_dist_git[artifact3-image/some-name-osbs/repo/some-name] tests/test_builder.py::test_osbs_copy_artifacts_to_dist_git[artifact4-image/some-target.jar-osbs/repo/some-target.jar] tests/test_builder.py::test_docker_builder_defaults tests/test_builder.py::test_docker_squashing_enabled tests/test_builder.py::test_docker_squashing_disabled tests/test_builder.py::test_docker_squashing_parameters tests/test_builder.py::test_buildah_builder_run tests/test_builder.py::test_buildah_builder_run_pull tests/test_builder.py::test_podman_builder_run tests/test_builder.py::test_podman_builder_run_pull tests/test_builder.py::test_podman_builder_run_with_generator tests/test_builder.py::test_buildah_builder_run_with_generator
cekit/builders/docker_builder.py
cekit/builders/docker_builder.py