Did you just create a Docker image using a dockerfile with a build command and did not provide an image name? Well then, when run docker images you will see your image name as <none> for tag and repository.
% docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 5eeb4aaaec59 16 seconds ago 180MB
ubuntu latest 3c2df5585507 10 days ago 69.2MB
amazonlinux latest 5514655128c4 2 weeks ago 194MB
alpine latest a6215f271958 3 months ago 5.29MB
How do you rename the image you just created?
First, find out the IMAGE ID of the image and then run the docker image tag command followed by image id and image name.
% docker image tag 5eeb4aaaec59 myimg:2.1.0
% docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myimg 2.1.0 5eeb4aaaec59 About a minute ago 180MB
Note tag will be latest if you do not provide any.

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Docker,
- How to docker remove a container when it exits
- Install Python on Alpine Linux - Docker
- How to Rename Docker Image with none TAG and REPOSITORY?
- Remove all stopped containers in Docker using prune command
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown
- [fix] Error response from daemon: conflict unable to remove repository reference ubuntu container is using its referenced image
- [Docker] Install Python3 on Alpine Linux
- Unable to find image docker latest locally
- How to Stop/Cancel/kill docker image pull
- How to know the Docker Engine Version
- [fix] Docker: OCI runtime exec failed unable to start container process
- [Solution] Alpine Docker apt-get: not found
- Install and Run Cassandra on Docker Desktop
- Install node on Alpine Linux Docker
- How to Copy files from Docker Container to Host System
- Install the minimal Linux on Docker (only 5 mb Alpine Linux)
- How to stop and start a docker container
- Docker - Error response from daemon: You cannot remove a running container
- Open Docker Desktop from macOS Terminal
- How to check installed docker version command
- How to know the Docker Sandbox ID of a Container Network?
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.
- [Docker] Install Git on Alpine Linux
- Docker MySQL Compose File with Volume Example
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found
More Posts:
- Locate Notepad++ unsaved files backup location - NotepadPlusPlus
- Android Developers Bluetooth Tutorial - Android
- [Solution] AWS Java SDK S3 AmazonS3Exception InvalidAccessKeyId - AWS
- How to switch between sftp and Terminal shell - FTP
- Fix: error: could not find `Cargo.toml` in Users or any parent directory - Rust
- [git] fatal: your current branch 'main' does not have any commits yet - Git
- How to know Notepad++ is 32-bit or 64-bit Version - NotepadPlusPlus
- SharePoint - Use Today's Date Time in list view filter and calculated column - SharePoint