Reputation: 31
I created linux ubuntu container and I tired to run python script.
But it raises this error:
<frozen importlib._bootstrap>:228: RuntimeWarning: Linux supports fsync/fdsync with io_submit since 4.18 but current kernel 4.15.0-55-generic doesn't support it. Related calls will have no effect.
How can I update ubuntu kernel which is inside docker container?
There is dockerfile:
FROM ubuntu:21.04
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get dist-upgrade -y
RUN apt-get install python3.9 -y
RUN apt-get install python3-pip -y
Upvotes: 2
Views: 7497
Reputation: 12498
You cannot upgrade kernel inside docker container - the whole point of using Docker containers in contrary to virtualization is that you use the same kernel that your underlying OS does. You have to upgrade your operating system kernel to fix this problem.
Upvotes: 8