[root@node1 ~]# cd /home/gaojs/
[root@node1 gaojs]# ls
apache-dolphinscheduler-1.3.6-bin.tar.gz docker_mysql Documents grafana-8.0.5 hadoop2.8.1 hive239 nacos Public spark-3.0.3-bin-hadoop2.7 Templates
Desktop docker_redis Downloads grafana-8.0.5.linux-amd64.tar.gz hbase-2.3.5 Music Pictures sosfware sqoop147 Videos
[root@node1 gaojs]# systemctl start docker
[root@node1 gaojs]# cd /home/dolphinscheduler/
[root@node1 dolphinscheduler]# ls
dolphinscheduler
[root@node1 dolphinscheduler]# cd /opt/
[root@node1 opt]# ls
apache-zookeeper-3.5.9-bin.tar.gz data jdk1.8.0_131 rh zookeeper
[root@node1 opt]# cd zookeeper/
[root@node1 zookeeper]# ls
bin conf docs lib LICENSE.txt logs NOTICE.txt README.md README_packaging.txt
[root@node1 zookeeper]# cd bin/
[root@node1 bin]# ./zkServer.
zkServer.cmd zkServer.sh
[root@node1 bin]# ./zkServer.sh start
/opt/jdk1.8.0_131/bin/java
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@node1 bin]# docker -ps -a
unknown shorthand flag: 'p' in -ps
See 'docker --help'.
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:
checkpoint Manage checkpoints
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
deploy Deploy a new stack or update an existing stack
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@node1 bin]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
62264f433067 redis "docker-entrypoint..." 6 weeks ago Exited (0) 5 weeks ago redis_cache
385d2e8747de mysql "docker-entrypoint..." 6 weeks ago Exited (255) 54 seconds ago 0.0.0.0:3306->3306/tcp, 33060/tcp mysqldb
[root@node1 bin]#
相关推荐
Docker在操作的过程中,会遇到很多的命令,每一次使用查询起来都比较麻烦,所以我整理了一份Docker 常用命令大全分享给大家,这样在实用的过程中,直接在文档搜索就可以了,更加的便利,需要的小伙伴可以自行下载。
Docker相关命令操作
docker常用命令 整理成了思维导图 结构更清晰。 常用命令 启动/状态/关闭 service docker start|... systemctl start|... docker docker version 查看版本 docker info 查看docker详情 镜像的相关指令 ...
docker 基础命令,还不是很完善继续整理中 ,对于初入门的人还是有些帮助的,1、docker基础命令 启动一个容器 Docker run -i-t ubuntu /bin/bash -i表示docker守护进程为客户端打开标准输入,而 -t:表示 打开一伪...
docker环境安装相关命令、docker环境安装相关命令、docker环境安装相关命令、docker环境安装相关命令、docker环境安装相关命令、docker环境安装相关命令、docker环境安装相关命令、docker环境安装相关命令、docker...
python 操作docker 命令, docker命令操作,镜像查看,运行,删除,导出,加载等操作...
这是一个 docker 的常用命令汇总, 涵盖了docker入门到日常维护和使用, 基本都有, 从镜像到容器再到docker网络以及redis集群部署
docker常用命令,自己亲自整理,非常网络上粘贴的不好使的命令
空闲的时候把菜鸟教程里的docker常用命令整理成帮助文件,方便大家随时查看。欢迎大家入门学习。~~~~~~~~~~~~~~~
docker常用命令,安装docker,镜像,容器,仓库,数据券,网络,定制镜像,Docker compose,Docker machine,Docker swarm
对于日常的docker的命令操作,进行总和,和日志一起相互记忆
Docker是一个基于Go语言实现的开源应用容器引擎。它允许开发者将应用程序及其依赖项打包到一个轻量级、可移植的容器中,并发布到任何流行的Linux或Windows操作系统的机器上。Docker容器是完全使用沙箱机制,相互之间...
docker常用命令、镜像更新
自己整理总结的docker命令,一般常用的都在里面,包括升级最新版本docker,建仓库,数据卷常用命令,查看,建立,删除等等。
docker常用命令
docker实战之基础命令系列docker实战之基础命令系列docker实战之基础命令系列docker实战之基础命令系列docker实战之基础命令系列docker实战之基础命令系列docker实战之基础命令系列docker实战之基础命令系列docker...
docker常用命令
docker常用命令,本人整理的docker相关基础命令,对新人能快速定位到自己的需要,帮助学习docker操作,还有基于swarm集群搭建