Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH 04 - Container image of the day does not go through #31

Open
eliassal opened this issue Mar 15, 2021 · 2 comments
Open

CH 04 - Container image of the day does not go through #31

eliassal opened this issue Mar 15, 2021 · 2 comments

Comments

@eliassal
Copy link

Exercise
Packaging applications from source code into Docker Images
4.2
TRY IT NOW Run a container from the image, publishing port 80 to the host computer, and connecting to the nat network:
docker container run --name iotd -d -p 800:80 --network nat image-ofthe-day

Problem
Image gets created, but when running the above command for running the container, do Docker Logs, I see the following error
image-of-the-day

Docker version
Client: Docker Engine - Community
Cloud integration: 1.0.9
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:14:53 2021
OS/Arch: windows/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.24)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:26:56 2021
OS/Arch: windows/amd64
Experimental: false

Code version
Please run git log -n 1 and paste the output.
image-of-the-day-Code

Additional context
Running in windows container context, tried linux container context, I get the same error

@sixeyed
Copy link
Owner

sixeyed commented Mar 15, 2021

Hi @eliassal , this is odd - I've just tried the exercise myself and I don't get that issue, everything works fine. It looks like there's a duplicate annotation somewhere, maybe there's been a change to your source code?

Can you try cloning a fresh copy of the repo and trying again? You could also try adding --pull to the docker build command to make sure you have the latest base images.

@eliassal
Copy link
Author

Thanks Elton, yes, you are correct, I cloned the repo again to a new location, as I had cloned the repo last year and reached Ch05 so maybe there was something messing up, the container works fine now. I wanted to refresh my memory before proceeding to next chapters as I was very occupied with other stuff for the last 6 months. Thanks again for your work and making this available for the community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants