How to run a pulled images - docker

32,638

There isnt any image with tag "latest" Try running using the tag "dab-1.1.0slim"

docker run 24325.dkr.ecr.us-east-1.amazonaws.com/lm/rd/tools:dab-1.1.0slim

Or else you could run the docker image using image id

docker run -i -t f994713b61cb

for more info on docker run command check out https://docs.docker.com/engine/reference/commandline/run/

Share:
32,638

Related videos on Youtube

Bella
Author by

Bella

Updated on July 09, 2022

Comments

  • Bella
    Bella almost 2 years

    I'm trying to run a pulled image without any success. I pulled an image from AWS using the Image URI.

    when I run docker images I can see my pulled image:

    REPOSITORY                                           TAG             IMAGE ID            CREATED             SIZE
    alpine                                               3.9             055936d39205        3 weeks ago         5.53MB
    24325.dkr.ecr.us-east-1.amazonaws.com/lm/rd/tools    dab-1.1.0slim   f994713b61cb        3 weeks ago         110MB
    ubuntu                                               16.04           a3551444fc85        5 weeks ago         119MB
    anapsix/alpine-java                                  8               745575fbfe52        3 months ago        126MB
    

    I'm new at dockers, but from what I understand after pulling no need to build it, just run it but when I tried to run it like so: docker run 24325.dkr.ecr.us-east-1.amazonaws.com/lm/rd/tools I get the below message:

    Unable to find image '24325.dkr.ecr.us-east-1.amazonaws.com/lm/rd/tools:latest' locally
    docker: Error response from daemon: pull access denied for 24325.dkr.ecr.us-east-1.amazonaws.com/lm/rd/tools, repository does not exist or may require 'docker login'.
    

    So I tried to build it like so: docker build -t 24325.dkr.ecr.us-east-1.amazonaws.com/lm/rd/tools and got the message:

    "docker build" requires exactly 1 argument.
    See 'docker build --help'.
    

    What is the problem? How can I run a pulled image from AWS?

  • Bella
    Bella about 5 years
    Thanks! That worked. After running the image, I'm suppose to be inside the container , right? If I run docker ps I should see my running container?
  • Bella
    Bella about 5 years
    I don't have it....I assumed that if I pulled it I have it. How can I get the dockerfile?
  • Bella
    Bella about 5 years
    It seems to run but exits immediately form the container and not showing when I type docker ps. Any idea why?
  • Sree
    Sree about 5 years
    no idea, create a new thread with all the logs from the container.
  • Bella
    Bella about 5 years
    Wait, I'm totally confused, when I pull an image from AWS for example, I don't have the dockerfile itself, right? To run the container do I need the dockerfile itself? If yes, how can I get it?