ubuntu14.04LTS安装docker

ubuntu14.04 LTS 安装docker


1.新建用户docker
sudo adduser docker
2.新建用户组dockers
sudo addgroup dockers
3.将用户docker放入用户组dockers中
sudo gpasswd -a docker dockers
4.将docker添加到sudo的用户序列中
sudo adduser docker sudo
5.进入docker用户
su docker
6.更新
sudo apt-get update
7.安装依赖包
sudo apt-get install linux-image-generic-lts-trusty
8.重启机器
sudo reboot
9.安装wget
sudo apt-get install wget
10.安装docker
sudo wget -qO- https://get.docker.com/ | sh
11.去除docker的sudo权限
sudo gpasswd -d docker sudo
12.用户组dockers免密码设置
在/etc/sudoers中添加如下一句:
## Allows people in group wheel to run all commands
%dockers ALL=(ALL) NOPASSWD: ALL
13.测试
运行命令docker run hello-world 出现以下字样说明测试成功了。
docker@ubuntu:~$ 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.
(Assuming it was not already locally available.)
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 bash
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ubuntu 14.04 LTS是一个长期支持版本的Linux操作系统,下面是其安装教程: 1. 下载镜像:首先,在Ubuntu官方网站上下载Ubuntu 14.04 LTS的镜像文件。你可以选择64位或32位版本,取决于你的计算机架构。 2. 创建安装介质:下载完成后,你需要将镜像文件写入USB闪存驱动器或光盘中,以用作安装介质。你可以使用Rufus、Unetbootin或Etcher等工具来完成这个任务。确保将该设备设置为启动设备。 3. 启动安装介质:将USB闪存驱动器或光盘插入计算机,并重新启动计算机。进入计算机的BIOS设置,并将启动顺序更改为首先从USB闪存驱动器或光盘启动。 4. 开始安装:计算机启动后,将显示Ubuntu安装界面。选择“Install Ubuntu”来启动安装过程。 5. 选择语言:选择你想要在Ubuntu中使用的语言。 6. 检查系统要求:系统会检查你的计算机是否满足安装Ubuntu所需的最低硬件要求。确保在继续安装之前你的计算机满足这些要求。 7. 选择安装类型:选择你想要执行的安装类型。你可以选择完全擦除硬盘并安装Ubuntu,或者将其安装在另一个操作系统旁边以实现双引导。 8. 设置磁盘分区:如果你选择将Ubuntu安装在另一个操作系统旁边,你需要设置磁盘分区。在这一步中,你可以选择自动将其分区,或者手动设置分区。 9. 设置用户信息:输入你的用户名和计算机名称,并设置密码。 10. 等待安装完成:一旦完成上述步骤,点击“Install”按钮以开始Ubuntu安装过程。安装过程可能需要一些时间,取决于你的计算机性能。 11. 重启计算机:一旦安装完成,你将收到一个通知要求你重启计算机。 12. 登录Ubuntu:重新启动计算机后,你将看到登录界面。输入你在安装过程中设置的密码,并登录到Ubuntu 14.04 LTS操作系统中。 这就是Ubuntu 14.04 LTS安装步骤。祝你安装成功并享受使用Ubuntu的乐趣!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值