サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
体力トレーニング
docs.docker.io
Sections Home About Installation Examples Docker.io Reference Contribute About Docker Understanding Docker The Technology Working with Docker Get Docker Installation Mac OS X Ubuntu Red Hat Enterprise Linux Gentoo Google Cloud Platform Rackspace Cloud Amazon EC2 IBM Softlayer Arch Linux FrugalWare Fedora openSUSE CRUX Linux Microsoft Windows Binaries Examples First steps with Docker Hello Worl
Examples Using Supervisor Using Supervisor with Docker Note This example assumes you have Docker running in daemon mode. For more information please see Check your Docker install. If you don’t like sudo then see Giving non-root access Traditionally a Docker container runs a single process when it is launched, for example an Apache daemon or a SSH server daemon. Often though you want to run more th
Note These instructions are available with the new release of Docker (version 0.8). However, they are subject to change. Note Docker is still under heavy development! We don’t recommend using it in production yet, but we’re getting closer with each release. Please see our blog post, “Getting to Docker 1.0”
Configure Networking¶ Docker uses Linux bridge capabilities to provide network connectivity to containers. The docker0 bridge interface is managed by Docker itself for this purpose. Thus, when the Docker daemon starts it : creates the docker0 bridge if not present searches for an IP address range which doesn’t overlap with an existing route picks an IP in the selected range assigns this IP to the
Share Directories via Volumes¶ New in version v0.3.0: Data volumes have been available since version 1 of the Docker Remote API A data volume is a specially-designated directory within one or more containers that bypasses the Union File System to provide several useful features for persistant or shared data: Data volumes can be shared and reused between containers. This is the feature that makes d
Note Docker is still under heavy development! We don’t recommend using it in production yet, but we’re getting closer with each release. Please see our blog post, “Getting to Docker 1.0” Note This is a community contributed installation path. The only ‘official’ installation is using the Ubuntu installation path. This version may be out of date because it depends on some binaries to be updated and
Kernel Requirements¶ In short, Docker has the following kernel requirements: Linux version 3.8 or above. Cgroups and namespaces must be enabled. Note: as of 0.7 docker no longer requires aufs. AUFS support is still available as an optional driver. The officially supported kernel is the one recommended by the Ubuntu installation path. It is the one that most developers will use, and the one that re
# Download an ubuntu image sudo docker pull ubuntu # Run an interactive shell in the ubuntu image, # allocate a tty, attach stdin and stdout # To detach the tty without exiting the shell, # use the escape sequence Ctrl-p + Ctrl-q sudo docker run -i -t ubuntu /bin/bash Why sudo?¶ The docker daemon always runs as root, and since docker version 0.5.2, docker binds to a Unix socket instead of a TCP po
Working with Repositories¶ A repository is a hosted collection of tagged images that together create the file system for a container. The repository’s name is a tag that indicates the provenance of the repository, i.e. who created it and where the original copy is located. You can find one or more repositories hosted on a registry. There can be an implicit or explicit host name as part of the repo
1. Brief introduction¶ The Remote API is replacing rcli By default the Docker daemon listens on unix:///var/run/docker.sock and the client must have root access to interact with the daemon If a group named docker exists on your system, docker will apply ownership of the socket to the group The API tends to be REST, but for some complex commands, like attach or pull, the HTTP connection is hijacked
Port redirection¶ Docker can redirect public TCP ports to your container, so it can be reached over the network. Port redirection is done on docker run using the -p flag. A port redirect is specified as PUBLIC:PRIVATE, where TCP port PUBLIC will be redirected to TCP port PRIVATE. As a special case, the public port can be omitted, in which case a random public port will be allocated. # A random PUB
Dockerfile Builder¶ Docker can act as a builder and read instructions from a text Dockerfile to automate the steps you would otherwise make manually to create an image. Executing docker build will run your steps and commit them along the way, giving you a final image. 1. Usage¶ To build an image from a source repository, create a description file called Dockerfile at the root of your repository. T
docker, the Linux Container Runtime, runs Unix processes with strong guarantees of isolation across servers. Your software runs repeatably everywhere because its Container includes any dependencies. docker runs three ways: as a daemon to manage LXC containers on your Linux host (sudo docker -d) as a CLI which talks to the daemon’s REST API (docker run ...) as a client of Repositories that let you
Please note this is a community contributed installation path. The only ‘official’ installation is using the Ubuntu Linux installation path. This version may be out of date because it depends on some binaries to be updated and published Install virtualbox from https://www.virtualbox.org - or follow this tutorial Install vagrant from http://www.vagrantup.com - or follow this tutorial Install git wi
Note This example assumes you have Docker running in daemon mode. For more information please see Running the Examples Video: I’ve create a little screencast to show how to create a sshd service and connect to it. It is something like 11 minutes and not entirely smooth, but gives you a good idea. # Hello! We are going to try and install openssh on a container and run it as a servic # let's pull ba
This guide will setup a new virtualbox virtual machine with docker installed on your computer. This works on most operating systems, including MacOX, Windows, Linux, FreeBSD and others. If you can install these and have at least 400Mb RAM to spare you should be good. Install Vagrant and Virtualbox Install virtualbox from https://www.virtualbox.org/ (or use your package manager) Install vagrant fro
このページを最初にブックマークしてみませんか?
『Docker for AWS Public Beta - Docker Blog』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く