Description:
I cannot use the command of iptables due to the ubuntu kernel upgrade error in Docker.
Steps:
Step 1. I tried the command below. But the error message below appears.
$$ iptables -L
iptables v1.6.1: can’t initialize iptables table `filter’: Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Step 2. To solve the issue, I tried the command below. But the error below appears.
$$ apt-get install linux-image-$(uname -r)
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-image-4.9.184-linuxkit
E: Couldn’t find any package by glob ‘linux-image-4.9.184-linuxkit’
E: Couldn’t find any package by regex ‘linux-image-4.9.184-linuxkit’