ubuntu 18.04安装docker

这篇具有很好参考价值的文章主要介绍了ubuntu 18.04安装docker。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

from:Install Docker Engine on Ubuntu | Docker Documentation

Install from a package

If you can’t use Docker’s apt repository to install Docker Engine, you can download the deb file for your release and install it manually. You need to download a new file each time you want to upgrade Docker Engine.

  1. Go to Index of linux/ubuntu/dists/.

  2. Select your Ubuntu version in the list.

  3. Go to pool/stable/ and select the applicable architecture (amd64armhfarm64, or s390x).

  4. Download the following deb files for the Docker Engine, CLI, containerd, and Docker Compose packages:

    • containerd.io_<version>_<arch>.deb
    • docker-ce_<version>_<arch>.deb
    • docker-ce-cli_<version>_<arch>.deb
    • docker-buildx-plugin_<version>_<arch>.deb
    • docker-compose-plugin_<version>_<arch>.deb
  5. Install the .deb packages. Update the paths in the following example to where you downloaded the Docker packages.

    $ sudo dpkg -i ./containerd.io_<version>_<arch>.deb \
      ./docker-ce_<version>_<arch>.deb \
      ./docker-ce-cli_<version>_<arch>.deb \
      ./docker-buildx-plugin_<version>_<arch>.deb \
      ./docker-compose-plugin_<version>_<arch>.deb
    

    The Docker daemon starts automatically.

  6. Verify that the Docker Engine installation is successful by running the hello-world image.

    $ sudo service docker start
    $ sudo docker run hello-world
    

    This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits.文章来源地址https://www.toymoban.com/news/detail-450926.html

到了这里,关于ubuntu 18.04安装docker的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • Docker安装和维护mantisbt(Ubuntu 18.04)

    将/etc/apache2/sites-available/default-ssl.conf拷贝为/etc/apache2/sites-available/xxx a2ensite xxx a2enmod ssl systemctl restart apache2

    2024年02月13日
    浏览(32)
  • Ubuntu18.04安装docker-io

    Ubuntu18.04安装docker-io

    1.1 网上一搜,全是更新仓库、下载依赖、添加docker的gpg密钥、添加docker仓库、安装docker-ce的步骤,但是在安装docker-ce时却提示 “ package \\\"docker-ce\\\" has no installation candidate ” ,就很迷。 1.2 安装 docker.io 2.1 按照某文档执行指令\\\" docker run -it img_name:tag /bin/bash \\\",却报错“ docker: Er

    2024年02月10日
    浏览(8)
  • Ubuntu 18.04 Docker 安装配置 Apollo 6.0

    Ubuntu 18.04 Docker 安装配置 Apollo 6.0

    Apollo 6.0 安装完全指南 在这一步出错: 进入到 Apollo 源码根目录,打开终端,执行下述命令以启动 Apollo Docker 开发容器 并没有成功启动 Apollo docker 开发容器 Apollo 6.0 安装完全指南 下午来了之后在 Apollo 源码根目录下重新执行如下命令以启动 Apollo Docker 容器 很意外居然没有报

    2024年02月16日
    浏览(22)
  • iTOP-RK3568开发板Docker 安装 Ubuntu 18.04

    iTOP-RK3568开发板Docker 安装 Ubuntu 18.04

    Docker 下载安装 Ubuntu18.04,输入以下命令: sudo apt update docker pull ubuntu:18.04 切换 Shell 到 Ubuntu 18.04,输入以下命令: docker container run -p 8000:3000 -it ubuntu:18.04 /bin/bash -p 参数:容器的 3000 端口映射到本机的 8000 端口。 -it 参数:容器的 Shell 映射到当前的 Shell,然后你在本机窗口输

    2024年02月15日
    浏览(7)
  • 【Ubuntu18.04】Docker配置镜像源

    【Ubuntu18.04】Docker配置镜像源

    作者主页: 爱笑的男孩。的博客_CSDN博客-深度学习,活动,YOLO领域博主 爱笑的男孩。擅长深度学习,活动,YOLO,等方面的知识,爱笑的男孩。关注算法,python,计算机视觉,图像处理,深度学习,pytorch,神经网络,opencv领域. https://blog.csdn.net/Code_and516?type=blog 个人简介:打工人。 持续分享:

    2024年02月06日
    浏览(11)
  • 【Ubuntu18.04 docker 启动容器,进入容器,执行脚本】

    1,启动容器 1,当前容器已经启动,怎么进入呢? -----进入步骤 一、 docker 服务启动启动 二、docker 容器自动启动 三、设置容器内的服务自动启动: 1-首先制作一个启动脚本start_fw.sh 参考 2-将容器制作为镜像,然后启动容器 3-

    2024年02月11日
    浏览(8)
  • Ubuntu18.04 docker kafka 本地测试环境搭建

    Ubuntu18.04 docker kafka 本地测试环境搭建

    Kafka是一种分布式流处理平台,也是一个高吞吐量的分布式发布订阅消息系统。它由LinkedIn开发,并于2011年成为Apache软件基金会的顶级项目。 Kafka的设计目标是能够处理大规模的消息流,并提供持久性、高吞吐量和低延迟的特性。它的核心概念是发布-订阅模型,其中消息被组

    2024年02月15日
    浏览(9)
  • ubuntu18.04用docker复现RDS-SLAM编译部分

    ubuntu18.04用docker复现RDS-SLAM编译部分

    记录一下RDS-SLAM的复现过程和当中遇到的一些问题 在git上直接下载完RDS-SLAM之后按照README的步骤在第一步sudo docker-compose build就遇到很多的问题。问题如下 直接运行RDS-SLAM的dockerfile 遇到报错: 解决方法: RUN apt update 不要在脚本中使用apt命令,如果在脚本中使用apt命令,有可能

    2024年01月22日
    浏览(16)
  • How to manually install PCL on ubuntu 18.04

    1. Firstly, need to check which version pcl you need to install on your ubuntu system. PCL download link: https://github.com/PointCloudLibrary/pcl/releases?page=2 https://github.com/PointCloudLibrary/pcl/releases?page=2 Find your version: pcl-1.9.1  Then click Assets, and download the source code.zip 2. unzip source_code.zip 3. cd source_code 4. 5.  6. 7. 

    2024年01月21日
    浏览(15)
  • ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件

    ubuntu(18.04)中架设HiGlass docker镜像服务,已尝试mcool、bedpe、wig格式文件

    使用到的软件  docker   文档 :  https://www.docker.com/ HiGlass  文档:http://docs.higlass.io/higlass_docker.html#running-locally higlass-docker  地址:https://github.com/higlass/higlass-docker nginx      文档:   https://www.cnginx.com/   拉取HiGlass docker镜像 需要花点时间 创建容器数据卷目录 启动容器 运行

    2024年02月06日
    浏览(8)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包