aws-samples/aws-modern-application-workshop

module-2 : Docker build does not work with latest ubuntu image

Closed this issue · 4 comments

When running for the first time the command 'docker build . ' the operation will fail because the system cannot find the package python-pip .

Modifying the dockerfile first line this way fixes the issue :

from

FROM ubuntu:latest

to

FROM ubuntu:18.04

i am not a linux expert so no idea what changed between the 18.04 and the latest version, but wanted to signal the issue because it can be quite frustrating as few information can be found on the internet

Given you are using Python, you should try #192 response =)

And I'm pretty sure the following will happen to you too #199

When running for the first time the command 'docker build . ' the operation will fail because the system cannot find the package python-pip .

Modifying the dockerfile first line this way fixes the issue :

from

FROM ubuntu:latest

to

FROM ubuntu:18.04

i am not a linux expert so no idea what changed between the 18.04 and the latest version, but wanted to signal the issue because it can be quite frustrating as few information can be found on the internet

Thanks for pointing this out man, it was definitely driving me nuts for a bit.