docker-compose

docker container hostname sequential number

…衆ロ難τιáo~ 提交于 2020-03-18 14:07:32
问题 Is there any option to have the hostname / containername to have some seq numbers in case of replicas/scale in docker swarm? version: '3' services: serA: image: someimage1 hostname: serA serB: image: someimage2 tty: true hostname: serB{{.Node.index}} deploy: replicas: 2 For ex: I would like to have the hostnames as serB1 and serB2 回答1: AFAIK this is not supported and won't be supported as the Docker team thinks it's a bad idea: After some thought, I don't think this is a good idea. We might

docker container hostname sequential number

别说谁变了你拦得住时间么 提交于 2020-03-18 14:03:47
问题 Is there any option to have the hostname / containername to have some seq numbers in case of replicas/scale in docker swarm? version: '3' services: serA: image: someimage1 hostname: serA serB: image: someimage2 tty: true hostname: serB{{.Node.index}} deploy: replicas: 2 For ex: I would like to have the hostnames as serB1 and serB2 回答1: AFAIK this is not supported and won't be supported as the Docker team thinks it's a bad idea: After some thought, I don't think this is a good idea. We might

docker container hostname sequential number

喜你入骨 提交于 2020-03-18 14:03:32
问题 Is there any option to have the hostname / containername to have some seq numbers in case of replicas/scale in docker swarm? version: '3' services: serA: image: someimage1 hostname: serA serB: image: someimage2 tty: true hostname: serB{{.Node.index}} deploy: replicas: 2 For ex: I would like to have the hostnames as serB1 and serB2 回答1: AFAIK this is not supported and won't be supported as the Docker team thinks it's a bad idea: After some thought, I don't think this is a good idea. We might

Docker-Compose 实现 GitLab + Jenkins 安装

旧巷老猫 提交于 2020-03-18 13:50:24
Gitlab 安装说明: 1·运行内存最好在 4 G,Cpu 2核 2·注意运行端口,不要端口冲突 3·此安装是以 Docker-Compose 实现,所以需要安装 Docker-Compose,此安装方法需要自行百度。 > vim docker-compose.yml //创建 compose 文件 version: '2' services: gitlab: image: 'gitlab/gitlab-ce:latest' container_name: gitlab restart: always hostname: 'gitlab.aiitle.com' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://gitlab.aiitle.com:8929' gitlab_rails['gitlab_shell_ssh_port'] = 2224 gitlab_rails['time_zone'] = 'Asia/Shanghai' ports: - '8929:8929' - '2224:22' volumes: - './config:/etc/gitlab' - './logs:/var/log/gitlab' - './data:/var/opt/gitlab' Gitlab 启动流程 1· 执行命令:

docker-compose restart connection pool full

限于喜欢 提交于 2020-03-18 11:47:44
问题 My team and I are converting some of our infrastructure to docker using docker-compose. Everything appears to be working great the only issue I have is doing a restart it gives me a connection pool is full error. I am trying to figure out what is causing this. If I remove 2 containers or (1 complete setup) it works fine. A little background on what I am trying to do. This is a Ruby on Rails application that is being ran with multiple different configurations for different teams within an

docker-compose restart connection pool full

筅森魡賤 提交于 2020-03-18 11:47:27
问题 My team and I are converting some of our infrastructure to docker using docker-compose. Everything appears to be working great the only issue I have is doing a restart it gives me a connection pool is full error. I am trying to figure out what is causing this. If I remove 2 containers or (1 complete setup) it works fine. A little background on what I am trying to do. This is a Ruby on Rails application that is being ran with multiple different configurations for different teams within an

How to disable core file dumps in docker container

ε祈祈猫儿з 提交于 2020-03-18 10:47:09
问题 My PHP container runs puppeteer to generate PDF. By generating a PDF document, it also creates two core dump files inside my container. I am not sure where they actually come from. The host/server is CentOS 7. I've checked following: No application error log, Browsershot/puppeteer is running without errors. No error log (e.g. segfault) found in /var/log/messages I've tried to disable core dumps By following Disable core dumps section of https://linux-audit.com/understand-and-configure-core

psql: could not translate host name “somePostgres” to address: Name or service not known

匆匆过客 提交于 2020-03-18 07:03:30
问题 I am building a java spring mvc application in docker and dockefile build involves interacting with postgres container. Whenever i run docker-compose up the step in dockerfile which interacts with the postrges sometimes fails with an exception psql: could not translate host name "somePostgres" to address: Name or service not known FAILED FAILURE: Build failed with an exception. DockerCompose file: abcdweb: links: - abcdpostgres build: . ports: - "8080:8080" volumes: - .:/abcd-myproj container

`docker-compose up` times out with UnixHTTPConnectionPool

♀尐吖头ヾ 提交于 2020-03-18 05:47:49
问题 In our Jenkins agents we are running about several (around 20) tests whose setup involves running docker-compose up for a "big" number of services/containers (around 14). From time to time, I'll get the following error: ERROR: for testdb-data UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60) An HTTP request took too long to complete. Retry with --verbose to obtain debug information. If you encounter this issue regularly because of slow network conditions,

Docker-compose部署jumpserver堡垒机

北城以北 提交于 2020-03-17 11:01:29
一.环境部署 1.搭建docker环境 yum -y install docker 2.安装docker-compose curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/bin/docker-compose chmod +x /usr/bin/docker-compose 3.创建项目目录 mkdir -p /data/jms cd /data/jms 4.下载jms的docker项目 git clone https://github.com/wojiushixiaobai/docker-compose.git [root@localhost docker-compose]# cat docker-compose.yml version: '3' services: mysql: image: wojiushixiaobai/jms_mysql:${Version} container_name: jms_mysql restart: always tty: true environment: DB_PORT: $DB_PORT DB_USER: $DB_USER DB_PASSWORD: $DB