Docker

Docker push fail to push to Artifactory docker registry behind traefik reverse proxy ( with “Upload failed: EOF”)

本小妞迷上赌 提交于 2021-02-19 08:18:05
问题 We are using Artifactory pro 5.10.4 version. We are migating from a simple installation on a VM and apache reverse proxy for docker registries to docker swarm cluster. We are convinced that Traefik is the best alternative when it comes to dynamic configuration. We are facing some docker push with traefik. Our compose file for Artifactory service is: version: '3.7' services: artifactory: image: docker.bintray.io/jfrog/artifactory-pro:5.10.4 environment: EXTRA_JAVA_OPTIONS : > '-Xms2g' '-Xmx2g'

Kubernetes - “Mount Volume Failed” when trying to deploy

末鹿安然 提交于 2021-02-19 07:49:51
问题 I deployed my first container, I got info: deployment.apps/frontarena-ads-deployment created but then I saw my container creation is stuck in Waiting status. Then I saw the logs using kubectl describe pod frontarena-ads-deployment-5b475667dd-gzmlp and saw MountVolume error which I cannot figure out why it is thrown: Warning FailedMount 9m24s kubelet MountVolume.SetUp failed for volume "ads-filesharevolume" : mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: -

Traefik custom error pages when using Docker labels

*爱你&永不变心* 提交于 2021-02-19 07:45:09
问题 Later versions of Traefik support custom error pages – the ability to send a request to a different back end if there is an error. Commonly, this is a 502 when the reverse proxy can't communicate with a an application server. This docs page explains how to do this with the file backend type, and this works well enough. However, I'm trying to use the Docker backend. This docs page shows a prospective Docker configuration – though it's not clear what the <name> substitution is supposed to mean.

Kubernetes: How to automatically clean up unused images

笑着哭i 提交于 2021-02-19 07:35:49
问题 Due to some internal issues, we need to remove unused images as soon as they become unused. I do know it's possible to use Garbage collection but it doesn't offer strict policy as we need. I've come across this solution but it's deprecated it also removes containers and possible mounted volumes I was thinking about setting a cron job directly over the nodes to run docker prune but I hope there is a better way No idea if it makes a difference but we are using AKS 回答1: This doesn't really

Kubernetes: How to automatically clean up unused images

谁说我不能喝 提交于 2021-02-19 07:35:22
问题 Due to some internal issues, we need to remove unused images as soon as they become unused. I do know it's possible to use Garbage collection but it doesn't offer strict policy as we need. I've come across this solution but it's deprecated it also removes containers and possible mounted volumes I was thinking about setting a cron job directly over the nodes to run docker prune but I hope there is a better way No idea if it makes a difference but we are using AKS 回答1: This doesn't really

How to access logs logged in journald using fluent-bit that's inside a docker container

 ̄綄美尐妖づ 提交于 2021-02-19 07:00:13
问题 I'm using docker-compose.yml that launches my services. All services look something like this: A-service: image: A-service restart: always network_mode: host logging: driver: journald options: tag: "{{.ImageName}}/{{.Name}}/{{.ID}}" fluent-bit: image: 'bitnami/fluent-bit:latest' restart: always network_mode: host command: /fluent-bit/bin/fluent-bit -c /fluent-bit/etc/fluent-bit.conf volumes: - ./service/config/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf - type: bind source: /run/log

Disallow egress from Docker containers on Docker for Mac

青春壹個敷衍的年華 提交于 2021-02-19 06:27:25
问题 I want to disable all outgoing connections that are initiated by docker containers to the outside world. I can do this in linux by adding a rule to the FORWARD chain in linux. How do I do this in Docker for Mac? I found out that Docker for Mac uses an xhyve vm and that’s where docker0 interface lives. What interface in the host does this connect to? I used nettop on Mac and I see that Docker uses my en0 wireless interface. But, I’m not sure if Docker and xhyve are using the same interface.

Helm + Kubernetes, load and enable extensions or modules in PHP

六月ゝ 毕业季﹏ 提交于 2021-02-19 05:59:05
问题 i've problem when i run a php deployment with kubernetes becouse don't load the modules or extensions libraries. My deployment file is this: apiVersion: apps/v1 kind: Deployment metadata: name: php labels: app: php spec: selector: matchLabels: app: php replicas: 1 template: metadata: labels: app: php spec: containers: - name: php image: php:7-fpm env: - name: PHP_INI_SCAN_DIR value: :/usr/local/etc/php/conf.custom ports: - containerPort: 9000 lifecycle: postStart: exec: command: ["/bin/sh","

Why is my containerized Selenium application failing only in AWS Lambda?

懵懂的女人 提交于 2021-02-19 05:53:47
问题 I'm trying to get a function to run in AWS Lambda that uses Selenium and Firefox/ geckodriver in order to run. I've decided to go the route of creating a container image, and then uploading and running that instead of using a pre-configured runtime. I was able to create a Dockerfile that correctly installs Firefox and Python, downloads geckodriver , and installs my test code: FROM alpine:latest RUN apk add firefox python3 py3-pip RUN pip install requests selenium RUN mkdir /app WORKDIR /app

“Unable to locate package git” when running GitLab CI/CD pipeline

微笑、不失礼 提交于 2021-02-19 05:26:15
问题 I am trying to set up a GitLab CI/CD pipeline with this following .gitlab-ci.yml file: stages: - test image: "ros:foxy-ros-base-focal" before_script: - apt-get -y update && apt-get install -y \ git wget qt5-default \ python3-osrf-pycommon \ python3-catkin-tools \ python3-rosdep \ python3-vcstool \ python3-pip \ python3-colcon-common-extensions \ apt-utils - rm -rf /var/lib/apt/lists/* - /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; colcon build" - echo "source /root/dev_ws/install