Docker 常见操作及部署springboot、Shiro、SpringData脚手架(上)
创始人
2024-05-30 13:47:35
0

1、查看docker 的状态
systemctl status docker
在这里插入图片描述

2、查看docker运行状态的详细信息
docker info

在这里插入图片描述

3、docker部署第一个应用
docker search nginx
在这里插入图片描述

拉取镜像到本地
docker pull nginx

在这里插入图片描述
4、查看本地的镜像信息
docker images
在这里插入图片描述
5、使用镜像来创建容器
docker run -d -p 1234:80 nginx

在这里插入图片描述
在这里插入图片描述

6、查看容器的信息
docker ps
在这里插入图片描述
7、查看命令信息
docker help
在这里插入图片描述

[root@k8smaster ~]# docker helpUsage:	docker [OPTIONS] COMMANDA self-sufficient runtime for containersOptions:--config string      Location of client config files (default "/root/.docker")-D, --debug              Enable debug mode-H, --host list          Daemon socket(s) to connect to-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 quitManagement Commands:config      Manage Docker configscontainer   Manage containersimage       Manage imagesnetwork     Manage networksnode        Manage Swarm nodesplugin      Manage pluginssecret      Manage Docker secretsservice     Manage servicesstack       Manage Docker stacksswarm       Manage Swarmsystem      Manage Dockertrust       Manage trust on Docker imagesvolume      Manage volumesCommands:attach      Attach local standard input, output, and error streams to a running containerbuild       Build an image from a Dockerfilecommit      Create a new image from a container's changescp          Copy files/folders between a container and the local filesystemcreate      Create a new containerdiff        Inspect changes to files or directories on a container's filesystemevents      Get real time events from the serverexec        Run a command in a running containerexport      Export a container's filesystem as a tar archivehistory     Show the history of an imageimages      List imagesimport      Import the contents from a tarball to create a filesystem imageinfo        Display system-wide informationinspect     Return low-level information on Docker objectskill        Kill one or more running containersload        Load an image from a tar archive or STDINlogin       Log in to a Docker registrylogout      Log out from a Docker registrylogs        Fetch the logs of a containerpause       Pause all processes within one or more containersport        List port mappings or a specific mapping for the containerps          List containerspull        Pull an image or a repository from a registrypush        Push an image or a repository to a registryrename      Rename a containerrestart     Restart one or more containersrm          Remove one or more containersrmi         Remove one or more imagesrun         Run a command in a new containersave        Save one or more images to a tar archive (streamed to STDOUT by default)search      Search the Docker Hub for imagesstart       Start one or more stopped containersstats       Display a live stream of container(s) resource usage statisticsstop        Stop one or more running containerstag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGEtop         Display the running processes of a containerunpause     Unpause all processes within one or more containersupdate      Update configuration of one or more containersversion     Show the Docker version informationwait        Block until one or more containers stop, then print their exit codesRun 'docker COMMAND --help' for more information on a command.
[root@k8smaster ~]# 

相关内容

热门资讯

苹果还是安卓系统快,谁更胜一筹... 你有没有想过,手机里那个小小的操作系统,竟然能决定你的使用体验?今天,咱们就来聊聊这个热门话题:苹果...
安卓导航改苹果系统,无缝切换体... 你有没有想过,把安卓导航系统换成苹果系统,会是怎样的体验呢?想象你那熟悉的地图导航,突然间换了个“脸...
安卓导航如何进系统,系统生成与... 你有没有想过,你的安卓手机导航功能竟然可以深入到系统的核心呢?没错,今天就要来跟你聊聊这个神奇的话题...
电脑上面装安卓系统,全方位概述 你有没有想过,在你的电脑上装一个安卓系统?听起来是不是有点不可思议?但你知道吗,这可不是什么天方夜谭...
苹果刷安卓虚拟系统,刷机虚拟系... 你有没有想过,你的苹果手机竟然能装上安卓的虚拟系统?听起来是不是有点不可思议?别急,今天就来带你一探...
安卓 加密文件系统,安全存储与... 你知道吗?在安卓的世界里,有一个神秘的守护者,它就是安卓加密文件系统。今天,就让我带你一探究竟,揭开...
斑马系统怎么刷安卓,轻松实现系... 亲爱的读者,你是否曾想过给你的安卓设备来一次焕然一新的变身?没错,就是那种让你的手机瞬间变得与众不同...
怎样让安卓系统更新系统,轻松实... 亲爱的安卓用户们,你是否也和我一样,时不时地收到系统更新的提示,却总是犹豫不决,担心更新后手机会变慢...
如何看自己安卓系统,自我诊断与... 你有没有想过,你的安卓手机里那个默默无闻的系统,其实是个超级英雄呢?它每天都在为你保驾护航,从早晨闹...
安卓系统怎么拼写啊,Andro... 你问这个问题可真是戳中了我的技术盲区呢!安卓系统,这个名字听起来是不是很熟悉,就像你的手机里那个无所...
华为安卓系统被停用,挑战与转型... 你知道吗?最近科技圈可是炸开了锅!华为安卓系统被停用,这可不是一个小新闻哦。咱们得好好聊聊这个话题,...
安卓王者荣耀观战系统,沉浸式观... 亲爱的手机游戏爱好者们,你是否曾在王者荣耀的战场上,因为错过队友的精彩操作而扼腕叹息?或者,你是否渴...
怎么加安卓12系统,安卓12系... 你有没有发现,安卓系统每次更新都像是在给我们的小手机来一次华丽变身呢?这不,安卓12已经悄悄地来了,...
安卓系统阿联酋航空积分,便捷积... 你有没有想过,你的安卓手机里那些累积的积分,竟然可以在阿联酋航空的旅途中派上大用场?没错,就是那个带...
安卓系统录音文件位置,录音文件... 你有没有遇到过这种情况:手机里突然冒出了很多录音文件,但你就是找不到它们藏在哪里?别急,今天就来给你...
安卓灵动岛系统自带,智能交互新... 你知道吗?最近安卓手机界可是掀起了一股不小的风潮,那就是——安卓灵动岛系统自带功能!是不是听起来就让...
安卓支持ios系统下载,下载体... 你知道吗?最近在科技圈里可是掀起了一股小小的热潮呢!那就是安卓手机竟然支持iOS系统下载应用了!是不...
火山安卓加验证系统,安全与便捷... 你知道吗?在科技飞速发展的今天,手机安全可是个大问题。尤其是安卓系统,作为全球使用最广泛的操作系统之...
简化系统app安卓版,高效便捷... 你有没有发现,现在的生活节奏越来越快,信息爆炸的时代,我们每天都要处理海量的数据和信息。在这个时候,...
surfacepro2安卓系统... 你有没有想过,一台笔记本电脑竟然能像智能手机一样灵活多变?没错,今天我要跟你聊聊的就是这款神奇的设备...