Welcome to the Linux Foundation Forum!

Chapter 4 Lab exercise 4.5-7. comments

I performed successfully all the "podman" commands from exercise 4.5 except the last one without the sudo part since during the course it was remarked that that tool didn't require root rights; I guess this could be reflected on the lab instructions

When attempting the exercise 4.5 "step 7.": 'sudo podman image build . -t nginx:podman'
I got the error:

Error: creating build container: short-name "nginx" did not resolve to an alias and no unqualified-search registries are defined in "etc/containers/registries.conf"

I was able to progress by modifying the "FROM" Dockerfile from exercise 4.3 "step 4." of the same lab with
FROM docker.io/library/nginx:latest

However I still had issues at STEP 2/4 (attempting without the sudo):
Error: building at STEP "COPY . /usr/share/nginx/html": 3 errors occurred
...
...": operation not supported

Truncated log

After a couple of tries (repeats) and finally adding the sudo in the last attempt the command worked as expected.

Categories

Upcoming Training