How to Install Docker on Ubuntu 14.04 LTS
来源:互联网 发布:张敬轩 知乎 编辑:程序博客网 时间:2024/06/10 13:48
http://www.liquidweb.com/kb/how-to-install-docker-on-ubuntu-14-04-lts/
II. How To List and Attach to Docker Containers
III. How to Commit Changes and Create Docker Images
IV. How to View Logs for a Docker Container
Docker is a container-based software framework for automating deployment of applications. “Containers” are encapsulated, lightweight, and portable application modules.
- As of June 2014 Docker has officially released v1.0.0.
- These instructions are intended for installing Docker.
- I’ll be working from a Liquid Web Core Managed Ubuntu 14.04 LTS server, and I’ll be logged in as root.
First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.
apt-get update
Let’s install Docker by installing the docker-io package:
apt-get -y install docker.io
Link and fix paths with the following two commands:
ln -sf /usr/bin/docker.io /usr/local/bin/docker
sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
Finally, and optionally, let’s configure Docker to start when the server boots:
update-rc.d docker.io defaults
Let’s begin using Docker! Download the fedora Docker image:
docker pull ubuntu
Now, to setup a basic ubuntu container with a bash shell, we just run one command. docker run will run a command in a new container, -i attaches stdin and stdout, -t allocates a tty, and we’re using the standard ubuntu container.
docker run -i -t ubuntu /bin/bash
That’s it! You’re now using a bash shell inside of a ubuntu docker container.
To disconnect, or detach, from the shell without exiting use the escape sequence Ctrl-p + Ctrl-q.
There are many community containers already available, which can be found through a search. In the command below I am searching for the keyword debian:
docker search debian
- How to Install Docker on Ubuntu 14.04 LTS
- How to Install Docker on Ubuntu 14.04 LTS
- How to Install Docker on Ubuntu 14.04 LTS
- How to install experimental Docker versions on my Ubuntu 16.04 LTS
- How to install OpenERP 7.0 on Ubuntu 12.04 LTS
- How to Install OpenERP Odoo 8 on Ubuntu Server 14.04 LTS
- docker install on ubuntu 16.04LTS
- How To Install Docker On Ubuntu 13.04 x64 VPS
- How to install clang on Ubuntu 14.04
- How To Install Git on Ubuntu 14.04
- How to Install OpenJDK 8 in Ubuntu 14.04 & 12.04 LTS
- How to install ia32-libs in Ubuntu 14.04 LTS
- How to Install OpenJDK 8 in Ubuntu 14.04 & 12.04 LTS
- How to Install OpenJDK 8 in Ubuntu 14.04 & 12.04 LTS
- How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM
- How To Install Docker on CentOS 7
- How To Install Docker on Fedora 23
- How To Install Docker on Fedora 23
- 第十四周项目4-2:IDE花括号换行机制
- 创建自己的总体计划
- 怎样在Windows系统中获取开源软件SVN更多的Revision记录
- 《开源框架那点事儿16》:缓存相关代码的演变
- MySQL用户及权限设置
- How to Install Docker on Ubuntu 14.04 LTS
- 事件的传递(一篇老外的博客)
- obj-c编程19:关联对象
- 诸葛io 大数据时代,企业如何打好信息资源整合攻坚战?
- android 绘制椭圆 圆角矩形 详细解析
- shader中的z、stencil、alpha测试
- SQL*LOADER的使用总结
- visitor模式
- [MFC]传统控件:控件简介以及CButton按钮类