# Create base Ubuntu Image with a kernel patch

**URL:** <https://forums.docker.com/t/create-base-ubuntu-image-with-a-kernel-patch/90170>\
**Category:** Docker Hub\
**Created:** [March 6, 2020, 1:25pm UTC](https://forums.docker.com/t/create-base-ubuntu-image-with-a-kernel-patch/90170 "2020-03-06T13:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasanijaz](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hasanijaz](https://forums.docker.com/u/hasanijaz)\
**Post date:** [March 6, 2020, 1:25pm UTC](https://forums.docker.com/t/create-base-ubuntu-image-with-a-kernel-patch/90170/1 "2020-03-06T13:25:14Z")

</div>

Hi,

I have searched over the internet and I can’t really find anything that could clear my confusion regarding this.

I need to apply a patch to the linux kernel for BLE stack and then use that kernel to create a Ubuntu base image for docker.

I have looked at creating a base image using tar from here: [https://docs.docker.com/develop/develop-images/baseimages/](https://docs.docker.com/develop/develop-images/baseimages/)

But I am confused how I will patch the kernel. Sorry if it’s a very noob question.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![meyay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/meyay/32/34000_2.png) [@meyay](https://forums.docker.com/u/meyay)\
**Post date:** [March 6, 2020, 1:57pm UTC](https://forums.docker.com/t/create-base-ubuntu-image-with-a-kernel-patch/90170/2 "2020-03-06T13:57:58Z")

</div>

What makes you think, that the linux kernel would be part of a docker (base) image? It is merely a set of loosly files that make up the typical tooling of the os. No kernel, no booting, no os level services started by default…

Whatever you are looking for… shipping (patched) kernels is not feasable with docker images/containers.

---

<div class="post-metadata">

**Author:** ![hasanijaz](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hasanijaz](https://forums.docker.com/u/hasanijaz)\
**Post date:** [March 6, 2020, 7:53pm UTC](https://forums.docker.com/t/create-base-ubuntu-image-with-a-kernel-patch/90170/3 "2020-03-06T19:53:31Z")

</div>

Thanks for the guidance. You are right shipping patched kernels is not the right approach here.

I will mark this fixed
