十年失眠架构师教你使用Docker来构建、运行、发布微服务

本文通过一个简单的示例介绍了如何使用Docker构建、运行和发布微服务。首先,通过`docker info`查看Docker详细信息,然后演示了运行`hello-world`测试容器的过程。接着,基于`hello-world`创建名为`hello-world-docker`的微服务应用,通过`Dockerfile`将其容器化。最后,利用Gradle构建Docker image并运行。
摘要由CSDN通过智能技术生成

3.查看Docker的详细信息

执行 docker info可以查看Docker 的详细信息。

C: lUserslAdministrator>docker info

Containers:o

Running:o

Paused:0

Stopped: 0

工mages:0

Server version:17.09.1-ce

Storage Driver: overlay2

Backing Filesystem:extfs

Supports d_type:true

Native Overlay Diff:true

Logging Driver: json-file

cgroup Driver:cgroupfs

Plugins:

volume: local

Network: bridge host ipvlan macvlan null overlay

Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk

syslog

Swarm: inactive

Runtimes:runc

Default Runtime: runc

Init Binary:docker-init

containerd version: 06b9cb35161009dcb7123345749fef027cea8e0

runc version:328b84a7773d38244dd690525642a72156c64

init version:949e6fa

Security Options:

seccomp

Profile: default

Kernel version: 4.9.49-moby

operating System: Alpine Linux v3.5

OSType:linux

Architecture:x86 64

CPUs:2

Total Memory: 1.934GiB

Name: moby

ID:FB3K:DR7K:UX7V:23AU:MPDR:E2NJ:R746:JFU5:730V:P2RU:YQ7F:MYPF

Docker Root Dir:/var/lib/docker

Debug Mode (client):false</

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值