dockerfile tag example Example 1: docker tag docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG] Example 2: docker build docker build -t [tag] .