Docker安装和简单使用入门
来源:互联网 发布:网络的消极作用 编辑:程序博客网 时间:2024/05/18 03:07
安装
由于我本人使用的linux系统,原生支持docker,相对安装还是比较简单的
1:使用下面的官方脚本安装:
wget -qO- https://get.docker.com/ | sh
2:输入下面的命令验证是否可以查看版本号,可以就是安装成功
sudo docker version
3:建议把当前使用的用户加到docker用户组,就可以不用很次都sudo了
sudo usermod -aG docker your_username
4:重新登录,sudo权限才会成效
logout
至此,你的docker环境就已经很快的安装完了
简单使用
一切从hello world开始,如下命令
docker run hello-world
你大致会看到如下内容
Hello from Docker!This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker ID: https://cloud.docker.com/For more examples and ideas, visit: https://docs.docker.com/engine/userguide/
现在就开始开始自己的docker学习之旅吧!
0 0
- Docker安装和简单使用入门
- docker入门安装与简单使用
- docker的安装和简单使用
- docker安装与简单使用
- centos7中docker的安装和简单使用
- nodejs安装和使用简单入门
- Docker容器技术介绍(一) --- Docker安装和简单使用
- Docker入门--简单使用--RHEL7.2
- docker 安装和使用 注意
- Ubuntu Docker 安装和使用
- docker-compose安装和使用
- yum安装Docker及入门使用
- Docker安装和初始化配置(入门篇)
- Docker第一篇:简介和入门安装
- docker学习-简单安装及使用
- 安装docker以及一些简单的使用
- Docker初步认识安装和简单实例
- Windows10下的docker安装与入门 (一)使用docker toolbox安装docker
- LeetCode——1.Two SUM
- Kubernetes 1.3 的现在和未来
- DLL函数调用规则
- 心得三、做事先做人(转载)
- 技术在与不断的学习新东西&记录和搜集
- Docker安装和简单使用入门
- PAT 1098. Insertion or Heap Sort (25)
- mongodb 启动警告
- struts 的 include标签
- org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map
- 2017美国数学建模ICM E题(环境) 翻译 需要可持续城市!(Sustainable Cities Needed!)
- 使用Android Studio新建Project并建立多个module
- 为何导热硅脂清洗会出现黑物质
- 46、Power Query-Table.FillDown函数简介