首页 > 系统相关 >Ubuntu安装Docker

Ubuntu安装Docker

时间:2023-02-01 20:24:25浏览次数:33  
标签:iptables set service sudo Ubuntu Docker 安装 docker

sudo service docker start显示[OK]但是* Docker is not running问题

首先必须添加 fstab 文件,因为由于某种原因不存在或无法读取:

touch /etc/fstab

由于网络控制器错误,所以要从nftables切换到iptables

update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

执行上述命令后重新启动docker

sudo service docker start

再查看当前运行状态

sudo service docker status

标签:iptables,set,service,sudo,Ubuntu,Docker,安装,docker
From: https://www.cnblogs.com/watson04/p/17084050.html

相关文章

  • pybedtools 安装和使用
    REFhttps://daler.github.io/pybedtools/search.html?q=cat 通过pip安装 pipinstallpybedtools 由文件创建BedTool对象test=pybedtools.BedTool('test.bed'......
  • 《istio-in-action 系列》 1. 安装 docker-k3s-istio 开发环境
    《istio-in-action系列》1.安装docker-k3s-istio开发环境1.安装docker我这里使用的是​​ubuntu20.04LTS​​操作系统sudoaptupdatesudoaptinstalldocker.io......
  • flutter:安装使用自定义的字体(flutter 3.7.0)
    一,在flutter项目中引入字体文件在项目中创建存放字体的文件夹fonts,并把要使用到的字体文件复制到此文件夹下:如图:说明:刘宏缔的架构森林是一个专注架构的博客,地址:htt......
  • pip搜索可安装库的版本
    pipinstalltldr==输出:ERROR:Couldnotfindaversionthatsatisfiestherequirementtldr==(fromversions:0.1.0,0.1.1,0.1.2,0.1.3,0.1.3.1,0.2,0.3,......
  • JDK的安装
    安装JDK1.下载JDK(一般选择JDK8)2.选择安装路径,配置环境需要3.配置环境变量(1)我的电脑,属性,高级系统设置,环境变量(2)在系统变量里面新建环境变量,系统变量名为JAVA_HOM......
  • Jar打包exe及安装包教程
    环境准备工具下载安装jar打包为exe运行程序工具exe4jjar打包为exe运行程序工具exe文件打包为安装程序软件Innosetupexe文件打包为安装程序软件jar运行环境安......
  • Alist手动安装并使用教程
    一、官方文档及下载地址1、官方文档AList文档2、下载地址alist·GitHub二、下载并解压文件以Windows为例,下载指定版本的文件。三、运行1、解压文件并进入......
  • linux 安装 elasticsearch
    下载#注意下载版本cd/usr/local/srcwgethttps://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz2、安装cd/usr/local/srctar-xvfelastics......
  • 第一次在docker部署项目(没有镜像版)
    初次在docker中拉取git上的项目,第一次使用git需要初始化创建git文件夹:gitinit!!创建项目存放的文件夹mkdir文件夹名称例如:mkdirspzstest!!进入文件夹cdspzstest!......
  • docker switch to Windows Containers切换失败问题
    1.最好先卸载docker 2.执行脚本安装docker#PowerShellInvoke-WebRequest-UseBasicParsing"https://raw.githubusercontent.com/microsoft/Windows-Containers/M......