Start a Docker ImageĪn image can be started in the foreground by: docker run cassandra The option -f forces the execution, because otherwise you would get an error if the image is referenced by more than 1 tag. To remove the image directly, it is easier to delete the image by image id: docker image rm 3a5e53f63281 -f Therefore, to remove it completely, I need to also remove another version tag: docker rm mysql:8.0.19 In my case, the image is still tagged with mysql:8.0.19. Therefore, there is a handy option to filter certain information: docker inspect -format='' 3a5e53f63281 Remove Docker ImagesĪ single image can be removed by: docker rm mysql:latest Alternatively, you can also use the image ID to get the information: docker inspect 3a5e53f63281 To get more information about an image, you can inspect it: docker inspect mysql:latest MySQL, version 8.0.19, one tagged as latest version.Here are the most important commands to use Docker in your daily business efficiently. You can start complex applications quickly, develop in isolation, and still have a very good performance. Docker has been widely adopted and is a great vehicle to deploy an application to the cloud (or some other Docker-ready infrastructure).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |