https://www.docker.com/ 详实的资料
其实你需要的是这个 https://docs.docker.com/
我使用的安装平台为ubuntu12.04.5 内核3.13(必须,文档上要求)
https://docs.docker.com/installation/ubuntulinux/
一步一步按照上面做
-
Log into your Ubuntu installation as a user with
sudo
privileges. -
Verify that you have
wget
installed.$ which wget
If
wget
isn't installed, install it after updating your manager:$ sudo apt-get update $ sudo apt-get install wget
-
Get the latest Docker package.
$ wget -qO- https://get.docker.com/ | sh
The system prompts you for your
sudo
password. Then, it downloads and installs Docker and its dependencies. -
Verify
docker
is installed correctly.$ sudo docker run hello-world
This command downloads a test image and runs it in a container.
sudo usermod -aG docker 你的用户名
然后你就可以开始享受docker的便捷与轻巧了
一些简单的命令就不说了,多练习一下能够使用得差不多了,详见https://docs.docker.com/userguide/
装完后,玩了一会docker过下瘾,然后就跑去睡了,第二天起来开机,挂了
出现kernel panic,提示大概意思是找不到root分区之类的信息,傻了,常用了alt+srq+reisub都没用了,估计kernel都没启动
怎么都想不通啊,获取翻文档。
好家伙,忘记挂cgroup了。好吧,改!
先用recovery mode进root 挂分区得到写权限
-
Edit the
/etc/default/grub
file. -
Set the
GRUB_CMDLINE_LINUX
value as follows:GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
-
Save and close the file.
-
Update GRUB.
$ sudo update-grub
-
Reboot your system.