一、安装
[root@bogon ~]# yum install docker
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
Package 2:docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64 already installed and latest version
Nothing to do
[root@bogon ~]#
二、验证:
[root@bogon ~]# docker
Usage: docker COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-D, --debug Enable debug mode
--help Print usage
-H, --host list Daemon socket(s) to connect to (default [])
-l, --log-level string Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
container Manage containers
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
volume Manage volumes
Commands:
attach Attach to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
[root@bogon ~]#
相关推荐
CentOS6.7 Docker最小版镜像 最小版的CentOS6.7,安装了openssh、wget、vim、target,用户名:root/root
在本文中,我们将深入探讨如何在CentOS 7.4上进行Docker的离线安装。这个过程对于那些没有互联网连接或者网络环境受限的服务器尤其重要。我们将使用RPM软件包来完成安装,并且会参考提供的附件“CentOS7.4离线安装...
安装步骤参考:https://blog.csdn.net/chkai123/article/details/126229727 docker离线安装 arm架构下离线安装docker docker centos7离线安装docekr 离线安装docker arm架构下安装docker arm架构centos7安装docker
CentOS7 Docker防火墙的简单配置 禁用 firewalld 服务 systemctl disable firewalld systemctl stop firewalld 安装 iptables 防火墙服务 yum install iptables-services 创建 iptables 配置脚本 cat >> /usr/...
Centos 6.9安装docker步骤,同步部署。自己整理容器实用。
CentOS 7.3 docker 离线安装方法(亲测) 1、配置网卡: vi /etc/sysconfig/network-scripts/ifcfg-ens33 ONBOOT=yes 2、安装dep 软件包docker.tgz tar -zxf docker.tgz 3、修改配置(加=false) vi /etc/...
在基础镜像centos7.5的基础上,增加了vim,net-tools命令,及libnpg,gtk2系统库。
这个我亲手写的docker入门教程,适合入门者,欢迎下载。
离线环境下,在centos7.6系统上安装docker-ce-19.03,nvidia-docker2.4版本,其中docker-ce-19.03在docker-local.tar压缩文件里面,nvidia-docker2在nvidia-docker2.zip文件中。 具体安装流程如下: 1.安装docker ...
由于centos6仓库已经不再维护,网上已经很难找到在内核2.6中可以允许的docker安装包 Linux localhost.localdomain 2.6.32-642.el6.x86_64 docker-engine-1.7.1-1.el6.x86_64.rpm 安装命令:yum localinstall docker...
在本文中,我们将深入探讨如何在CentOS 6.8系统上离线安装Docker环境,这主要依赖于RPM(Red Hat Package Manager)包。RPM是Linux发行版如CentOS用来安装、升级和管理软件的主要方式。由于是离线安装,我们需要预先...
CentOS下Docker 安装及使用教程,帮助Docker初学的同学们快速入门 主要内容:使用 yum 安装 Docker、镜像加速
3、docker和docker-compose安装要提前安装完成 4、将下载内容解压一个目录 5、运行 docker-compose up # 此命令环境会在终端前台运行 docker-compose up -d # 加上-d会放入后台进行环境的启动 如有问题,欢迎进行...
在本文中,我们将深入探讨如何在CentOS 7.3环境下离线安装Docker CE (Community Edition) 版本17.06.0-ce。Docker作为一个流行的容器化平台,使得开发者能够轻松地构建、分发和运行应用程序。在没有网络连接的情况下...
CentOS6离线安装docker1.7,以及相关的依赖架包,包括docker-io-1.7.1-2.el6.x86_64.rpm、lxc-libs-1.0.11-1.el6.x86_64.rpm、lxc-1.0.11-1.el6.x86_64.rpm等以及device-mapper-1.02.117-12.el6_9.1.x86_64.rpm、...
介绍了CentOS安装Docker 的方法,欢迎下载
CentOS7 Docker Tar镜像,
解压上传到服务器 安装docker sh install.sh docker-18.03.1-ce.tgz 卸载docker sh uninstall.sh 安装docker-compose sh docker-compose.sh docker-compose-Linux-x86_64 如有不明白的欢迎随时咨询
Linux-centos-docker安装-habor私库搭建
离线安装Docker在没有网络的环境中至关重要,这个CentOS下的Docker 1.13.1离线rpm包为此提供了方便。通过了解其特性并按照正确的步骤安装,即使在不联网的情况下,用户也能充分利用Docker的强大功能。