# Verify your Linux Kernel for Container Compatibility

DevFeed: [Verify your Linux Kernel for Container Compatibility](<https://devfeed.tech/articles/verify-your-linux-kernel-for-container-compatibility-29476.md>)

Original publisher: [Read original article](<https://blog.hypriot.com/post/verify-kernel-container-compatibility/>)

Published: 2019-04-28T15:48:50Z

Content type: tutorial

Language: en

Sources: [Hypriot](<https://devfeed.tech/sources/hypriot.md>)

Topics: [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Script](<https://devfeed.tech/topics/script.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [chmod](<https://devfeed.tech/tags/chmod.md>), [command](<https://devfeed.tech/tags/command.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [github](<https://devfeed.tech/tags/github.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [raspberry-pi](<https://devfeed.tech/tags/raspberry-pi.md>), [script](<https://devfeed.tech/tags/script.md>)

## AI overview

This tutorial explains how to check whether a Linux kernel has the settings required for running containers, with particular attention to embedded devices. It demonstrates the Docker/Moby check-config.sh Bash script, which tests a running kernel or a kernel .config file and can support remote verification.

## Source excerpt

Are you sure whether your Linux kernel is able to run Containers in an optimal way, or if there are still some missing kernel settings which will lead to some strange issues in the future? Normally you don't have to bother about this question. When you're using Docker and Containers on a modern Linux system or on a public cloud offering, this has been already optimized by the Linux distribution or your cloud provider. But when you start using Containers on Embedded Devices you should verify this carefully. So, let's learn how easy it is to verify it by yourself... How can I verify the Linux Kernel for Container Compatibility? Typically this is really an easy task, as soon as you know the right tools. For running Containers you'll need some basic settings applied to your Linux kernel. Some settings are mandatory and some others are optional and only used for specific use cases. But let's see how we can use the right tools. At the Docker open source project you can find a great bash script which does all these tests on your Linux kernel configuration and tells you within a few seconds all the required details. The script is able to read the kernel config live from a running kernel or directly from a kernel .config file as well. Now you can imagine you can verify the container compatibility also from a remote device. Download check-config.sh script Let's download the bash script check-config.sh directly from the Moby project (yes, this is the new name for the Docker open source project). $ wget https://github.com/moby/moby/raw/master/contrib/check-config.sh $ chmod +x check-config.sh Verify the Linux Kernel directly If you have your Linux system available you can download and run the script directly without any parameters. $ ./check-config.sh Then you'll get a detailled output with all kernel settings which are important for running containers. If you want to verify a kernel from a remote system, you could also first extract the Linux kernel config on this system and ana