Welcome to the Linux Foundation Forum!

command not working

In the "A container port mapping example" section, the below command return the error "Error response from daemon: No such image: okteto/sample-app:latest". Is this image moved or retired, or I am simply missing somethin here. Please help.

command = sudo docker image history okteto/sample-app

Answers

  • After I first pulled the okteto/sampl-app image, the above command in question ran fine. Since pulling the image step is not mentioned in the course, i did not pulled the image. Sorry, but I am new to this.

  • luisviveropena
    luisviveropena Posts: 1,233

    Hi @shekhar84, yep, if the image doesn't exist locally, Docker will give an error. So after you pulled the image (or run a container with the image name), the history will be printed.

    Regards,
    Luis.

Categories

Upcoming Training