ToB企服应用市场:ToB评测及商务社交产业平台

标题: Ubuntu 22.04 LTS 部署docker [打印本页]

作者: 丝    时间: 昨天 16:20
标题: Ubuntu 22.04 LTS 部署docker
一、什么是 Docker

Docker 是一个开源的容器化平台,可以使开发者将应用及其依靠打包到一个容器中,而且可以在任何情况中一致地运行。容器是轻量级的、可移植的,可以实现跨平台和跨情况的部署。
Docker 与虚拟化的区别
二、Docker 安装与卸载

1. Docker 安装

链接1: https://pan.baidu.com/s/1YSWFE1VmnD7sZvIiDZ-d8w?pwd=iszn 提取码: iszn
链接2:https://znas.cn/AppH5/share/?nid=LIYDEMJQGFBDGRBUGJBE2&code=yrCZtbYxYgm3P0Il8otysH2p2jvG5l3j5BU0S3wNVim3C4U7w7w7L5rm3tVhcl99WW8&mode=file&display=list
  1. [root@docker:~]# ll autoinstall-docker-docker-compose.tar.gz
  2. -rw-r--r-- 1 root root 84288398 Feb 27 19:04 autoinstall-docker-docker-compose.tar.gz
  3. [root@docker:~]# ./install-docker.sh i
  4. [root@docker:~]# docker --version
  5. Docker version 20.10.24, build 297e128
复制代码
验证安装是否成功,通过运行 hello-world 镜像
  1. [root@docker:~]# docker run crpi-z431eabbod8b9a37.cn-shenzhen.personal.cr.aliyuncs.com/jasper2024/k8s:latest
  2. Unable to find image 'crpi-z431eabbod8b9a37.cn-shenzhen.personal.cr.aliyuncs.com/jasper2024/k8s:latest' locally
  3. latest: Pulling from jasper2024/k8s
  4. e6590344b1a5: Pull complete
  5. Digest: sha256:7565f2c7034d87673c5ddc3b1b8e97f8da794c31d9aa73ed26afffa1c8194889
  6. Status: Downloaded newer image for crpi-z431eabbod8b9a37.cn-shenzhen.personal.cr.aliyuncs.com/jasper2024/k8s:latest
  7. Hello from Docker!
  8. This message shows that your installation appears to be working correctly.
  9. To generate this message, Docker took the following steps:
  10. 1. The Docker client contacted the Docker daemon.
  11. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
  12.     (amd64)
  13. 3. The Docker daemon created a new container from that image which runs the
  14.     executable that produces the output you are currently reading.
  15. 4. The Docker daemon streamed that output to the Docker client, which sent it
  16.     to your terminal.
  17. To try something more ambitious, you can run an Ubuntu container with:
  18. $ docker run -it ubuntu bash
  19. Share images, automate workflows, and more with a free Docker ID:
  20. https://hub.docker.com/
  21. For more examples and ideas, visit:
  22. https://docs.docker.com/get-started/
复制代码
2. Docker 卸载
  1. [root@docker:~]# ./install-docker.sh r
  2. Removed /etc/systemd/system/multi-user.target.wants/docker.service.
  3. Docker 卸载成功!
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4