docker-compose

How to map a docker containers directory to the host with docker-compose?

半腔热情 提交于 2020-02-02 02:30:28
问题 Given following docker-compose.yml setup: version: '3.7' services: reverse: container_name: nginx-reverse-proxy hostname: nginx-reverse-proxy image: nginx:stable ports: - 80:80 - 433:433 volumes: - type: bind source: ./config target: /etc/nginx consistency: consistent Results in ./config the folder beeing mapped to the container nginx-reverse-proxy and therefore in an empty /etc/nginx directory on the container. As stated in my question the goal is to see the content, the container (from the

docker ERROR: unknown blob

﹥>﹥吖頭↗ 提交于 2020-02-01 05:50:06
问题 On launching app using docker getting message ERROR: unknown blob as per docker-compose -f /usr/local/tmp/khufu01/loud_deploy/nokube/dind/docker-compose.yml up -d Pulling myimage(localhost:5000/forelsket/myimage:latest)... latest: Pulling from forelsket/myimage 50aff78429b1: Pulling fs layer f6d82e297bce: Pulling fs layer fdd34fec4c74: Pulling fs layer 151b5e27e3b4: Pulling fs layer d477e9b677eb: Pulling fs layer 7e8156598779: Download complete ca2064fc9543: Download complete ERROR: unknown

Harbor仓库搭建管理

流过昼夜 提交于 2020-02-01 05:18:01
简介: Harbor是一个用于存储和分发Docker镜像的企业级Registry服务器。 harbor以docker-compose的规范形式组织各个组件,并通过docker-compose工具进行启停。 Registry是Dcoker官方的一个私有仓库镜像,可以将本地的镜像打标签进行标记然后push到以Registry起的容器的私有仓库中。企业可以根据自己的需求,使用Dokcerfile生成自己的镜像,并推到私有仓库中,这样可以大大提高拉取镜像的效率。 主要组件 : Proxy:对应启动组件nginx。它是一个nginx反向代理,代理Notary client(镜像认证)、Docker client(镜像上传下载等)和浏览器的访问请求(Core Service)给后端的各服务; UI(Core Service):对应启动组件harbor-ui。底层数据存储使用mysql数据库,主要提供了四个子功能: UI:一个web管理页面ui; API:Harbor暴露的API服务; Auth:用户认证服务,decode后的token中的用户信息在这里进行认证;auth后端可以接db、ldap、uaa三种认证实现; Token服务:负责根据用户在每个project中的role来为每一个docker push/pull命令issuing一个token,如果从docker

162. SQL 审核查询平台 Archery

倾然丶 夕夏残阳落幕 提交于 2020-02-01 04:02:39
Archery 定位于 SQL 审核查询平台,旨在提升 DBA 的工作效率,支持主流数据库的 SQL 上线和查询,同时支持丰富的 MySQL 运维功能 SQL 审核平台使用说明: 1. 安装【docker】 1. 安装docker docker - compose yum install docker - ce docker - compose - y 2. 在线克隆 Archery文件,解压后进入docker - compose文件夹 git clone https: //gitee.com/rtttte/Archery.git 3. 导入所需镜像 [ root @rancher sql ] # docker load -i hanchuanchuan.tar.gz 6 b27de954cca: Loading layer [ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = > ] 5.857 MB / 5.857 MB 87 af49f9d15b: Loading layer [ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Vulhub漏洞复现之Apache解析漏洞总结

安稳与你 提交于 2020-01-31 08:23:18
我是啊锋,一个努力的学渣,作为一个刚进入安全大门的小白,我希望能把自己所学到的东西总结出来,分享到博客上,可以一起进步,一起交流,一起学习。 前文: 名字雷同但差个n的两种类型漏洞环境靶机:vulnhub与vulhub的区别 Vulhub漏洞复现之Dns域传送漏洞 Vulhub漏洞复现之Django (小于2.0.8)任意url跳转漏洞(CVE-2018-14574) Vulhub漏洞复现之ThinkPHP5.X SQL注入漏洞和敏感信息泄露漏洞 Apache 换行解析漏洞(CVE-2017-15715) Apache HTTPD 是一款 HTTP 服务器,它可以通过mod_php来运行 PHP 网页。其 2.4 .0 ~ 2.4 .29 版本中存在一个解析漏洞,在解析 PHP 时, 1. php\ x0A 将被按照 PHP 后缀进行解析,导致绕过一些服务器的安全策略。 Vulhub环境启动 cd vulhub / httpd / CVE - 2017 - 15715 对靶场进行编译: docker-compose build 运行靶场: docker-compose up -d 环境启动后发现页面是空白的需要自己添加前端的文件上传页面,代码如下,直接F12把代码黏贴到查看器的body里面 < form action = "" method = "post" enctype =

exited with code 0 docker

徘徊边缘 提交于 2020-01-30 22:46:22
问题 I'm trying to launch container using docker-compose services.But unfortunetly, container exited whith code 0 . Containers is build thanks to a repository which is from a .tar.gz archive. This archive is a Centos VM. I want to create 6 container from the same archive. Instead of typing 6 times docker command, I would like to create a docker-compose.yml file where i can summarize their command and tag. I have started to write docker-compose.yml file just for create one container. Here is my

exited with code 0 docker

会有一股神秘感。 提交于 2020-01-30 22:43:52
问题 I'm trying to launch container using docker-compose services.But unfortunetly, container exited whith code 0 . Containers is build thanks to a repository which is from a .tar.gz archive. This archive is a Centos VM. I want to create 6 container from the same archive. Instead of typing 6 times docker command, I would like to create a docker-compose.yml file where i can summarize their command and tag. I have started to write docker-compose.yml file just for create one container. Here is my

How to pull from multiple private registries with docker-compose?

浪尽此生 提交于 2020-01-30 10:33:05
问题 I've attempted to pull two images from two different projects registries (gitlab container registry). All that in a docker-compose.yml file. How can I configure my gitlab-ci.yml or configure variables (whatever works) in order to pull my images properly without any access problems ? I have found a solution using docker login with a deploy token to have read-only access to my project registry. The problem is that works if I had only one image to pull : How to build, push and pull multiple

Docker Compose connect ECONNREFUSED 172.18.0.4:3306

浪子不回头ぞ 提交于 2020-01-30 08:55:26
问题 When I build the container of the project with this command: sudo docker build -t PROJECT_NAME . And then I download the mysql's image through this Docker-Compose config: db: image: mysql restart: always ports: - "8999:3306" networks: - webnet environment: MYSQL_DATABASE: slack MYSQL_ROOT_PASSWORD: admin And then, the project will connect with MySQL through the Sequelize ORM I have this error: Unhandled rejection SequelizeConnectionRefusedError: connect ECONNREFUSED 172.18.0.4:3306 How can I

Unable to fire a docker build for Django and Mysql

无人久伴 提交于 2020-01-30 07:00:14
问题 I am building an application with Djnago and MySql. I want to use docker for the deployment of my application. I have prepared a requirement.txt , docker-compose.yml and a Dockerfile docker-compose.yml version: "3" services: law-application: restart: always build: context: . ports: - "8000:8000" volumes: - ./app:/app command: > sh -c "python manage.py runserver 0.0.0.0:8000" depends_on: - mysql_db mysql_db: image: mysql:latest command: mysqld --default-authentication-plugin=mysql_native