application docker build image

Docker CLI docker diff 常用命令

Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中,然后发布到任何流行的 Linux或Windows操作系统的机器上,也可以实现虚拟化。Docker是内核虚拟化,不使用Hypervisor是不完全虚拟化,依赖内核的特性实现资源隔离。本文主要介绍Docke ......
命令 常用 Docker docker diff

Docker(八):容器互联之自定义网络

在Docker中每一个容器都是一个独立的个体,相互之间不能进行信息的传输。这里学习一种让容器可以相互联系的方法——自定义网络。 一、创建自定义网络 命令:docker network create --driver 网络模式 --subnet 子网地址 --gateway 网关 网络名称测试:--d ......
容器 Docker 网络

Application of Permutation and Combination

# Reference https://www.shuxuele.com/combinatorics/combinations-permutations.html # Online Tool https://gadget.chienwen.net/x/math/percomb # Cracking ......
Application Permutation Combination and of

windows 10 wsl 环境 docker 无法正常启动 -The system cannot find the file specified

错误信息: error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "ht ......
specified windows 环境 docker cannot

Docker 部署 MariaDB

下载镜像 docker pull mariadb:10.9.6 启动容器 docker run -d --name mariadb -p 13306:3306 -v '/data/mariadb/data:/var/lib/mysql' -e "MARIADB_ROOT_PASSWORD=12345 ......
MariaDB Docker

docker tini管理后台服务

使用ubuntu作为基础镜像构建其他镜像时,由于系统使用的是init,无法设置服务为开机自启,这里使用tini,快速设置服务开机自启 Dockerfile如下 ``` FROM ubuntu:22.04 RUN apt update \ && apt install ssh tini cron -y ......
后台 docker tini

Docker部署postgres数据库

下载镜像 ```sh docker pull postgres:13.11 ``` 启动容器 ```sh docker run -d --name postgresql --restart always -v /data/postgres/data:/var/lib/postgresql/data ......
postgres 数据库 数据 Docker

docker 启动容器:WARNING: IPv4 forwarding is disabled. Networking will not work.

问题:近期用docker启动es,发现容器即使暴露端口,外部也连接不上。 root@java:/etc/init.d# docker run -d --name=es7 \ > -p 9200:9200 -p 9300:9300 \ > --net mynet --ip 172.19.0.3 \ > ......

docker - 配置linux 自启动容器

1.背景 自启动配置看我这这篇随笔【linux - 配置自启动服务 - 岑惜 - 博客园 (cnblogs.com)】 2.解决 首次启动容器,需要对容器命名,否则会随机生成命名,反正命名要唯一即可 命名启动方式例子 docker run --name 【容器名】 -i -t -d -e TZ="A ......
容器 docker linux

使用Docker Compose 部署 WordPress

```bash # 1.定义项目,切换到该项目目录 # Compose项目目录:可根据需要命名,是应用程序镜像的上下文环境,仅包含用于构建镜像的资源。 [root@hecs-hqs-01 ~]# mkdir my_wordpress && cd my_wordpress [root@hecs-hqs ......
WordPress Compose Docker

自建Docker注册中心

```bash (1)基于容器安装运行Registry [root@hqs ~]# docker pull registry [root@hqs ~]# docker run -d -p 5000:5000 --restart=always --name myregistry -v /opt/dat ......
Docker

docker-compose部署dubbo-admin

version: '3' services: dubbo-admin: hostname: dubbo-admin image: chenchuxin/dubbo-admin container_name: dubbo-admin # 指定容器名称,如果不设置此参数,则由系统自动生成 #restar ......

Docker(六):安装可视化面板Portainer

一、Portainer是什么 Portainer是一个Docker的图形可视化工具,能够提供一个交互界面显示Docker的详细信息供用户操作。 二、Portainer安装 1.下载Protainer镜像 docker pull portainer/portainer 2.创建容器并启动 docker ......
Portainer 面板 Docker

自建Docker注册中心

[root@hqs ~]# docker pull registryUsing default tag: latestlatest: Pulling from library/registry3d2430473443: Pull complete 5bf98bf80c2f: Pull complet ......
Docker

使用Docker Compose 部署 WordPress

# 1.定义项目,切换到该项目目录# Compose项目目录:可根据需要命名,是应用程序镜像的上下文环境,仅包含用于构建镜像的资源。[root@hecs-hqs-01 ~]# mkdir my_wordpress && cd my_wordpress[root@hecs-hqs-01 my_word ......
WordPress Compose Docker

彻底解决start request repeated too quickly for docker.service,docker无法启动问题

一开始报错,只是模糊的知道daemon.json写的有问题 然后死抠格式问题,无奈还是报错,感觉daemon.json书写成了玄学 直到后来找到了docker启动报错日志,问题才迎刃而解,顿时感觉这个问题变得通透了,不再是晕晕乎乎了 所以做技术,一定要有刨根问底的精神,知其然知其所以然,这样才会越做 ......
docker repeated request quickly service

通过docker overlay2 目录名查找容器名和容器ID

有时候经常会有个别容器占用磁盘空间特别大,这个时候就需要通过docker overlay2 目录名查找对应容器名: 1、 首先进入到 /var/lib/docker/overlay2 目录下,查看谁占用的较多 `cd /var/lib/docker/overlay2` `du -sc * | sor ......
容器 目录名 overlay2 overlay 目录

docker启动node.js项目

原文链接:[https://www.cnblogs.com/yalong/p/17463847.html](https://www.cnblogs.com/yalong/p/17463847.html) 这里使用 `koa2` 做为演示项目,使用 `Dockerfile` 构建 `Docker` 镜 ......
项目 docker node js

Docker(五):部署Tomcat

1.查找tomcat docker search tomcat [root@VM-8-4-centos ~]# docker search tomcatNAME DESCRIPTION STARS OFFICIAL AUTOMATEDtomcat Apache Tomcat is an open s ......
Docker Tomcat

Docker(四):部署Nginx

1.查找Nginx镜像 docker search Nginx 2.下载Nginx镜像 docker pull nginx 3.查看是否下载成功 docker images 4.创建容器并启动 docker run -d -p 8081:80 --name Nginx01 nginx这里使用ngin ......
Docker Nginx

ubuntu 20 permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/con ......
permission connect ubuntu denied Docker

Docker(三):Docker的常用命令

一、官方命令文档 https://docs.docker.com/reference/ 二、基础命令 1.查看docker版本信息 docker version 2.查看docker详细信息 docker info 3.docker帮助命令 docker --help 三、镜像命令 1.查看本机镜像 ......
Docker 命令 常用

10_How deploy a Django application using Nginx & Gunicorn in Production

地址:https://www.codewithharry.com/blogpost/django-deploy-nginx-gunicorn/ How to host Django Application using gunicorn & nginx in Production In this po ......

dockers overlay2大坑之 systemctl start docker 卡住不动

有一个机器里面的docker 想改下参数,然后重启 结果问题来了,systemctl start docker之后等了10分钟一直卡住不动,顿时感觉不对劲了 一开始以为参数修改的有问题,修改好几版之后,发现,参数修改错误启动会直接报错,修改的对会卡住 后百度一番,以及经过查找之后得出答案 docke ......
大坑 systemctl overlay2 dockers overlay

使用 Dockerfile 自定义 Docker 镜像

对于一些常用的 Docker 镜像,我们可以从 Docker 官方仓库或者国内的阿里云仓库中获取,比如 mysql、redis、nginx 等等。但是对于一些我们自己开发的程序,要想很方便的在 Docker 中部署,还是需要自己制作镜像。 这里不介绍 Docker 常用命令的使用,网上学习资料很多, ......
Dockerfile 镜像 Docker

Docker(二):阿里云镜像加速

1.登陆自己的阿里云账号,找到镜像加速器 2.配置 3.查看docker信息 docker info 出现以上信息则配置成功。 ......
镜像 Docker

Docker(一):Linux系统下Docker的安装与卸载

一、准备工作 1.Linux系统,我这里使用的是云服务器CentOS7 2.查看系统内核 系统内核需要3.0以上 3.系统版本 二、安装过程 1.卸载旧的版本 yum remove docker \ docker-client \ docker-client-latest \ docker-comm ......
Docker 系统 Linux

docker安装spark

curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x ......
docker spark

Neural network image classification using Intel oneAPI tool

With the continuous development of artificial intelligence technology, image classification has become a popular research area. In this field, deep le ......
classification network Neural oneAPI Intel

002--CentOS8 操作系统安装 Docker

CentOS8 操作系统安装 Docker 因为有的同学可能会选择其他的 Linux 的发行版来学习本课程,所以这节课我们也列举了如何在 Ubuntu 下安装 Docker 的方法。对于初次接触 Linux 的用户,我们会提供尽可能详细的注释来告知每个命令的作用,放松心态,跟着做就可以了。 Tips ......
CentOS8 CentOS Docker 系统 002