Docker: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Official web page http://docker.io = Installation = == Ubuntu == https://docs.docker.com/installation/ubuntulinux == Windows == * [https://docs.docker.com/installation/windo...") |
(→Usage) |
||
Line 16: | Line 16: | ||
= Usage = | = Usage = | ||
* [https://www.youtube.com/watch?v=umJYDAYxZys A brief intro to docker virtualization] | |||
<pre> | |||
docker search --help | |||
docker search redis | |||
docker search -s 100 redis | |||
docker pull --help | |||
docker pull ubuntu # download all versions of ubuntu | |||
docker images # available local container images | |||
docker pull centos:latest | |||
docker run --help | |||
cat /etc/issue # look at the current distr name before running docker | |||
docker run -it centos:latest /bin/bash | |||
# create a container & execute as a sudo | |||
cat /etc/redhat-release | |||
yum | |||
cd /home | |||
touch temp.txt | |||
ls | |||
exit | |||
docker ps # current running processes | |||
docker ps -a # show all processes including closed | |||
docker restart c85850ed0e13 | |||
docker ps # container c85850ed0e13 is running | |||
docker attach c85850ed0e13 # log into the system | |||
ls /home | |||
exit | |||
docker ps -a | |||
docker rm c85850ed0e13 # delete the container | |||
</pre> |
Revision as of 11:26, 30 December 2014
Official web page http://docker.io
Installation
Ubuntu
https://docs.docker.com/installation/ubuntulinux
Windows
- Windows. It will install Boot2Docker management tool with ISO, Virtualbox and MYSYS-git UNIX tools.
- If the installer detects a version of VirtualBox installed, the VirtualBox checkbox will not be checked by default (Windows OS). The VirtualBox cannot be used anymore after updating my VB from 4.3.18 to 4.3.20.
Error in supR3HardenedWinReSpawn
The error may be related to Windows update.
The VB installation messed up. At the end I switch to VMware player. I cannot test Windows's Docker on my Windows machine.
Usage
docker search --help docker search redis docker search -s 100 redis docker pull --help docker pull ubuntu # download all versions of ubuntu docker images # available local container images docker pull centos:latest docker run --help cat /etc/issue # look at the current distr name before running docker docker run -it centos:latest /bin/bash # create a container & execute as a sudo cat /etc/redhat-release yum cd /home touch temp.txt ls exit docker ps # current running processes docker ps -a # show all processes including closed docker restart c85850ed0e13 docker ps # container c85850ed0e13 is running docker attach c85850ed0e13 # log into the system ls /home exit docker ps -a docker rm c85850ed0e13 # delete the container