Docker

Could not resolve host: gogs-repo

旧巷老猫 提交于 2021-02-11 14:00:18
问题 I have a running container: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3825fa57b1ae repo:0.1.0 "/app/gogs/docker/st…" 29 minutes ago Up 29 minutes 22/tcp, 3000/tcp gogs-repo and tried to curl it from another container as follows: docker run --rm curlimages/curl:7.69.1 -L -v http://gogs-repo:3000 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Could not resolve host: gogs-repo I've

Docker django build fail: Couldn't import Django

喜你入骨 提交于 2021-02-11 13:55:59
问题 Docker build failed and getting error: "Couldn't import Django. Are you sure it's installed and " web_1 | ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? Dockerfile FROM debian:10.3-slim as base_image ENV PYTHONUNBUFFERED 1 RUN apt-get update \ && apt-get install -y --no-install-recommends \ ca-certificates \ exiftool \ fonts-arphic-uming \ fonts-arphic-ukai \ fonts

Java工程师必备书单

会有一股神秘感。 提交于 2021-02-11 13:54:45
本文出自我的公众号:程序员江湖。 江湖路险,你我同行。 Java开发工程师一般负责后端开发,当然也有专门做Java Web的工程师,但是随着前后端的分离,越来越多的Java工程师需要往大后端方向发展。 今天我们就来介绍一下Java后端开发者的书单。 首先要感谢一下江南白衣大大的后端书架,让我在初学阶段读到了很多好书,直到现在都印象深刻。 我在两年的学习历程中看了很多的书,其中不乏XXX入门到精通,XXX王者归来,XXX指南什么的。 虽然这类书确实毛病很多,但是作为非科班的我来说,当时还是看的津津有味。直到后来我看到一些优秀的书籍,以及白衣哥的书架,我才逐渐认识到看一些精品书籍的好处。 所以我们今天就从这些精品书籍中挑选一些优秀书籍来推荐给大家,当然其中有一些书我自己也没有时间看完。 接下来我们按照后端技术栈各个部分的内容来推荐书籍。 网络 1 TCP/IP卷一 这本其实我刚开始没看太懂,可能是当时太水的原因,但是一般是大牛力荐的书。 2 计算机网络:自顶向下 这本从应用层讲到物理层,感觉这种方式学起来更轻松,我比较推荐小白看这本。 3 图解HTTP和图解TCP/IP 相较于前两本大厚书,这两本书更加亲民,小白可以买来看看,还是很适合入门的。 4 计算机网络 没错,就是这本教材,作为非科班选手自己看这本书,那叫一个欲仙欲死啊,看完就忘记了。 操作系统 1 深入理解计算机系统

ps not fount when attaching .Net Core WebApi to Docker container

萝らか妹 提交于 2021-02-11 13:50:48
问题 I am trying to debug my .Net Core webApi project using Docker. However, I am struggling to make it work. I was following this link, to attached my .Net Core app on Docker using VS Code. This is my Dockerfile FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env #install debugger for NET Core RUN apt update && \ apt install -y procps && \ curl -sSL https://aka.ms/getvsdbgsh | /bin/sh /dev/stdin -v latest -l /vsdbg WORKDIR /app # Copy csproj and restore as distinct layers COPY *.csproj ./ RUN

Access network in other docker container

痞子三分冷 提交于 2021-02-11 13:50:42
问题 I have two docker containers. The first has an OpenVPN server where multiple clients are connected. Now I want to reach one of the clients through the VPN from the other container (for example with a simple ping command). Is that possible? At the moment I linked the containers this way: version: '3' services: app: build: context: . dockerfile: app.dockerfile links: - ovpn:ovpn ovpn: build: context: . dockerfile: ovpn.dockerfile working_dir: /etc/openvpn privileged: true volumes: - ./openvpn:

Windows Server Core in Docker, Firewall

六眼飞鱼酱① 提交于 2021-02-11 13:31:08
问题 Currently I am working on a project where I have to dockerize an application that is supposed to be running on Windows. It is an application that can be installed and configured via command line. The question is applicable to any application in the end. The platform of my choice is obviously Windows. Therefore I have chosen a base image mcr.microsoft.com/windows/servercore:1803 to begin with. After installation my application will need a rule added to Firewall. So I decided to test whether I

Windows Server Core in Docker, Firewall

元气小坏坏 提交于 2021-02-11 13:30:46
问题 Currently I am working on a project where I have to dockerize an application that is supposed to be running on Windows. It is an application that can be installed and configured via command line. The question is applicable to any application in the end. The platform of my choice is obviously Windows. Therefore I have chosen a base image mcr.microsoft.com/windows/servercore:1803 to begin with. After installation my application will need a rule added to Firewall. So I decided to test whether I

Kill Docker container permission denied

天大地大妈咪最大 提交于 2021-02-11 13:27:46
问题 I'm new to Docker and here what I'm trying to do is delete docker container using docker kill command. I'll show below what I have done so far, Step1: docker run --rm -ti ubuntu sleep 3000 Step2: docker ps Step3: docker kill frosty_bose Error response from daemon: Cannot kill container: quizzical_taussig: Cannot kill container c6379597647089b3e9b251f921ec443d987b0c1b76dfc6d06c704655ecdede8e: unknown error after kill: runc did not terminate sucessfully: container_linux.go:388: signaling init

Scheduling and scaling pods in kubernetes

冷暖自知 提交于 2021-02-11 13:24:32
问题 i am running k8s cluster on GKE it has 4 node pool with different configuration Node pool : 1 (Single node coroned status) Running Redis & RabbitMQ Node pool : 2 (Single node coroned status) Running Monitoring & Prometheus Node pool : 3 (Big large single node) Application pods Node pool : 4 (Single node with auto-scaling enabled) Application pods currently, i am running single replicas for each service on GKE however 3 replicas of the main service which mostly manages everything. when scaling

Scheduling and scaling pods in kubernetes

↘锁芯ラ 提交于 2021-02-11 13:24:19
问题 i am running k8s cluster on GKE it has 4 node pool with different configuration Node pool : 1 (Single node coroned status) Running Redis & RabbitMQ Node pool : 2 (Single node coroned status) Running Monitoring & Prometheus Node pool : 3 (Big large single node) Application pods Node pool : 4 (Single node with auto-scaling enabled) Application pods currently, i am running single replicas for each service on GKE however 3 replicas of the main service which mostly manages everything. when scaling