[英]Docker Linux Container Kernel Update
我创建了 linux ubuntu 容器,我厌倦了运行 python 脚本。
但它引发了这个错误:
<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.
如何更新 docker 容器内的 ubuntu kernel?
有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
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. 您必须升级您的操作系统 kernel 才能解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.