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 ~]# 

相关内容

热门资讯

开箱安卓系统机顶盒,智能娱乐新... 你有没有想过,家里的电视也能变成智能小助手?没错,就是那种可以安装各种应用、看高清视频、还能玩游戏的...
平板电脑安卓系统包,平板电脑应... 你有没有发现,现在的生活越来越离不开平板电脑了?尤其是安卓系统的平板,简直成了我们生活中不可或缺的好...
安卓手机系统初始化,安卓手机系... 你刚刚拿到的新安卓手机,是不是兴奋得手舞足蹈?别急,别急,先得来个系统初始化,让这个小家伙焕发新生!...
安卓系统测试常见bug,安卓系... 你有没有遇到过在使用安卓手机时,突然屏幕卡顿、应用崩溃或者系统突然变得不响应的情况?别急,这可不是个...
家用备份系统和安卓手机,家用备... 你有没有想过,家里的数据安全就像是一颗定时炸弹,随时可能“爆炸”?别担心,今天就来给你揭秘如何用安卓...
安卓系统重启功能吗,操作技巧与... 你有没有遇到过手机突然卡顿,或者系统运行缓慢,然后你灵机一动,心想:“重启说不定就好了!”没错,重启...
安卓系统附带什么软件 你有没有发现,每次拿到新手机,打开安卓系统,那感觉就像打开了一个新世界的大门呢?里面藏着各种各样的软...
寨板装安卓单系统 你有没有想过,手机装上安卓系统,是不是就能像电脑一样,玩转各种软件和游戏呢?今天,就让我带你一探究竟...
安卓系统是国家的吗,非国家属性... 你有没有想过,安卓系统这个我们每天不离手的家伙,它到底是不是国家的呢?这个问题听起来可能有点奇怪,但...
安卓模拟器2.0系统,系统升级... 你有没有想过,在电脑上玩手游也能这么畅快?没错,就是安卓模拟器2.0系统!这款神奇的软件,让无数手游...
如何减少安卓系统的耗电,轻松延... 手机电量总是不够用,是不是你也和我一样,每天都要担心手机突然没电呢?别急,今天就来和你聊聊如何减少安...
荣耀安卓11系统消息栏,荣耀安... 你有没有发现,最近你的荣耀手机是不是变得聪明多了?没错,就是那个荣耀安卓11系统,它给我们的消息栏带...
苹果耳机连安卓系统,跨界体验新... 你有没有想过,苹果的耳机竟然也能和安卓系统完美搭配呢?是的,你没听错,就是那个以封闭生态著称的苹果,...
安卓系统好的平板品牌,盘点热门... 你有没有想过,拥有一款性能卓越、体验流畅的安卓平板,简直就像拥有了移动的办公桌和娱乐中心呢?没错,今...
安卓下载系统和苹果区别,系统差... 你有没有发现,手机里的安卓下载系统和苹果的App Store简直就是两个截然不同的世界?今天,就让我...
怎么重启相机安卓系统手机,轻松... 手机相机突然罢工了?别急,让我来告诉你怎么重启安卓系统的手机相机,让你瞬间恢复拍照的乐趣!一、手动重...
智慧屏设置显示安卓系统,探索智... 亲爱的读者们,你是否也像我一样,对家里的智慧屏充满了好奇和期待?想要让它更好地服务于我们的生活,那么...
更新系统安卓系统会更新吗,体验... 亲爱的手机用户们,你是不是也和我一样,时不时地收到手机上那个小小的更新提示呢?没错,就是那个让你有点...
安卓新系统怎么布局好看,打造视... 你有没有发现,每次安卓系统更新,总有些小伙伴兴奋地跑来问我:“新系统怎么布局才好看啊?”这不就是今天...
win10安卓5.1系统,跨界... 亲爱的读者们,你是否曾想过,在Windows 10的强大平台上,也能体验到安卓5.1系统的流畅与便捷...