当前位置: 首页 > news >正文

让人做网站需要注意什么汕头百度seo公司

让人做网站需要注意什么,汕头百度seo公司,做网站如何用代码把字体变大,郑州网站建设哪家好常用命令 管理命令 管理命令说明builder管理构建config管理配置container管理容器context管理上下文engine管理引擎image管理镜像network管理网络node管理 Swarm 节点plugin管理插件secret管理 Docker secretsservice管理服务stack管理 Docker stacksswarm管理 Swarm 集群sys…

常用命令

管理命令

管理命令说明
builder管理构建
config管理配置
container管理容器
context管理上下文
engine管理引擎
image管理镜像
network管理网络
node管理 Swarm 节点
plugin管理插件
secret管理 Docker secrets
service管理服务
stack管理 Docker stacks
swarm管理 Swarm 集群
system查看系统信息
trust管理 Docker trust
volume管理卷

普通命令

容器生命周期管理

命令说明
run创建一个新的容器并运行一个命令
start启动容器
stop停止容器
restart重启容器
killkill 运行中的容器
rm删除容器
pause暂停一个或多个容器中的所有进程
unpause恢复容器中所有的进程
create创建一个新容器
exec在正在运行的容器中运行命令

容器操作

命令说明
ps查看容器列表
inspect返回 Docker 对象的低级信息
top展示一个容器中运行的进程
attach进入一个运行的容器
events从服务器获取实时事件
logs获取一个容器的日志
wait阻塞直到容器停止,然后打印退出代码
export将容器的文件系统导出为 tar 存档
port查看端口映射或容器的特定映射列表
stats实时显示容器资源使用情况的统计信息
update更新容器配置

容器 rootfs 命令

命令说明
commit从容器变更记录中创建一个镜像
cp在容器和宿主机文件系统之间拷贝文件
diff检查对容器文件系统上的文件或目录的更改

镜像仓库

命令说明
login登陆 Docker 镜像仓库
logout登出 Docker 镜像仓库
pull从镜像仓库拉取镜像
push将本地的镜像上传到镜像仓库,要先登陆到镜像仓库
search从 Docker Hub 搜索镜像

本地镜像管理

命令说明
images查看镜像列表
rmi删除镜像
tag标记本地镜像,将其归入某一仓库
build根据 DockerFile 构建镜像
history显示镜像的构建历史记录
save将指定镜像保存成 tar 归档文件
load从存档或者 STDIN 加载镜像
import从归档文件中创建镜像
rename重命名容器

相关信息

命令说明
wait
info显示系统范围的信息
version显示 Docker 的版本信息

宿主机操作

端口和磁盘目录的映射

# 将宿主机的 81 端口映射到容器的 80 端口
# 将宿主机的 /develop/data 卷 映射到容器的 /data 卷
$ docker run -i -t -p 81:80 -v /develop/data:/data centos /bin/bash
  • -p:映射端口号
  • -v:磁盘目录映射

Docker 更改端口号映射:

运行中的容器无法映射新的端口号,也无法更改端口号映射,但可以通过两种方法解决。

  1. iptable 转发端口
# 查看容器 IP
$ docker insepct 36afde543eb5 | grep IPAddress
> "IPAddress": "172.17.0.2"# 将主机的 8081 端口映射到宿主机的 8080 端口
$ iptables -t nat -A DOCKER -p tcp --dport 8081 -j DNAT --to-destination 172.17.0.2:8080
  1. 先提交容器为镜像,再运行这个容器,同时指定新的端口映射
# 提交容器为镜像
$ docker commit 9995ffa15f46  mycentos:0.1# 停止旧的容器
$ docker stop 9995ffa15f46# 重新从旧的镜像启动容器
$ docker run -i -t  -p 8081:8080  mycentos:0.1

宿主机关于 Docker 的操作

# 开启 docker
service docker start# 重启
service docker restart# 暂停
service docker stop

Docker Hub

创建和使用私有仓库

#
docker run -eSEARCH_BACKEND=sqlalchemy-eSQLALCHEMY_INDEX_DATABASE=sqlite:tmp/docker-registry.db-d -name registry -p 5000:5000 registry

原版指令指引

按首字母大小写排列

  • attach Attach local standard input, output, and error streams 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 to files or directories 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
http://www.khdw.cn/news/70579.html

相关文章:

  • 广安做网站的公司佛山抖音seo
  • 用php做的博客网站有哪些如何网上免费做推广
  • 网站建设增值服务网站报价
  • 网站备案法规关联词有哪些 全部
  • 长沙网站设计公司武汉seo霸屏
  • php做网站开发百度推广怎么优化
  • 怎么做网站投放adsense网络营销技能大赛优秀作品
  • 建设网站具备的知识培训机构加盟
  • 排名好的网站建设企业百度广告公司联系方式
  • wordpress 子网站常见的营销策略有哪些
  • 四川建设招标网站站长之家ping
  • 网站框架是什么谷歌浏览器免费入口
  • 网站建设服务中心广州关键词快速排名
  • 自己做静态网站的步骤百度惠生活商家入驻
  • 常州网站搭建seo技术团队
  • 建网站工具帮平台做推广怎么赚钱
  • 有没有做公司网站的seo搜索引擎推广什么意思
  • 替网站做任务怎么做的搭建自己的网站
  • 阿里巴巴网站优化怎么做seo专业课程
  • 科技公司网站设怎么优化自己公司的网站
  • wordpress显示作者墙广州王牌seo
  • 2017如何免费制作网站深圳网络营销策划公司
  • 全国旅游大型网站建设自媒体怎么做
  • 专业网站优化推广2022年seo还值得做吗
  • WordPress仿百家号主题淘宝关键词优化技巧教程
  • 打开网站占空间国外b站不收费免费2023
  • 广州网站外包seo文章
  • 如何编辑网站标题栏网站排名优化课程
  • 做网站需要哪些资质网站推广的技巧
  • 芝麻开门网站建设海口网站排名提升