Welcome to the Linux Foundation Forum!

Hello, just started the LFS250, but issues on the first demo video

Hi,
I tried to replicate what was done on Chapter 3 first video, using docker and podman.
Docker works flawless, even with Docker Desktop. When trying to do the same on a different Virtual Machine, I installed podman and also Podman Desktop. The command line:

  1. $ podman run --detach --publish-all nginx:latest
  2. or
  3. $ podamn run --detach --publish-all nginx:1.20

Return this error:
Error: short-name "nginx:latest" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"

I was able to solve the issue with:

  1. podman run --detach --publish-all docker.io/nginx:latest
  2. Trying to pull docker.io/library/nginx:latest...
  3. Getting image source signatures
  4. Copying blob 943ea0f0c2e4 done |
  5. Copying blob 7cf63256a31a done |
  6. Copying blob d014f92d532d done |
  7. Copying blob 513c3649bb14 done |
  8. Copying blob bf9acace214a done |
  9. Copying blob 9dd21ad5a4a6 done |
  10. Copying blob 103f50cb3e9f done |
  11. Copying config b52e0b094b done |
  12. Writing manifest to image destination
  13. f5136ce53f384ac4e184cb702c29d024da41f1541f9cef9e051491883308d5a1

Comments

  • Posts: 9

    On Chapter 3 as well, following the Demo: Building Container Images

    This instructions, in the description would have been helpful:

    • create a working directory for your application and enter that directorr
      mkdir app1

    then

    1. git clone https://github.com/docker/getting-started-app.git
    2.  
    • Create your Dockerfile with the following content:
    1. FROM node:lts-alpine
    2. WORKDIR /app
    3. COPY . .
    4. RUN yarn install --production
    5. CMD ["node", "src/index.js"]
    6. EXPOSE 3000
    • enter the directory
      getting-started-app

    • run the command

    1. podman build -t getting-started2 . -f ../Dockerfile
    2.  
    • then run the command below to check your new image
      podman images

    • then run the container image:

    1. podman run -d -p 3000:3000 getting-started
    2.  
    • Then open your Browser and enter the text below on the URL field:
      localhost:3000

    Voilá

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training