Issue with amazon linux docker image

I am trying to create a new docker image based off on one of the official Amazon Linux docker images but something is not entirely correct.

Here is the content of Dockerfile:

FROM amazonlinux:2017.09
MAINTAINER demouser
LABEL "my.aws.runtime"="1"
RUN yum -y upgrade && yum -y install git python27-pip
ENTRYPOINT ["entrypoint.sh"]

The installation of git pulls all kinds of packages and after that is done I get all these messages:

udevd[209]: worker [1408] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1409] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1408] terminated by signal 9 (Killed)

udevd[209]: worker [1409] terminated by signal 9 (Killed)

udevd[209]: worker [1410] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1410] terminated by signal 9 (Killed)

udevd[209]: worker [1411] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1411] terminated by signal 9 (Killed)

udevd[209]: worker [1412] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1413] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1414] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1415] did not accept message -1 (Operation not permitted), kill it

udevd[209]: worker [1413] terminated by signal 9 (Killed)

Any ideas? (And yes I need to use that specific version of Amazon Linux)

This is what I use to build container:

docker build -t myaws .

This is how I later run it:

docker run -t -i myaws:latest

Entry point script is just empty at this point

Source: StackOverflow