dockerfile

are VOLUME in Dockerfile persistent in kubernetes

那年仲夏 提交于 2021-02-17 06:01:18
问题 Some Dockerfile have a VOLUME command. What happens when such containers are deployed in Kubernetes, but no kubernetes volume are provided: no persistent volume (PV), nor persistent volume claim (PVC) ? Where are the file stored ? Is the volume persistent ? For exemple, Dockerfile image for Docker's library/postgreSQL container image has: VOLUME /var/lib/postgresql/data The stable/postgresql helm charts won't always create a PV: kind: StatefulSet ### SNIP SNIP ### containers: - name: {{

apt-get install tzdata noninteractive

与世无争的帅哥 提交于 2021-02-15 08:34:04
问题 When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying to use this in a script to do some setup, how can I make the apt-get run without user input? I know to reconfigure the tzdata I can do echo "America/New_York" > /etc/timezone dpkg-reconfigure -f noninteractive tzdata But when installing I need it to run fully even if it doesn't set the right timezone, I can always reconfigure it. I tried echo 5 | apt-get install -y tzdata but it is not

apt-get install tzdata noninteractive

a 夏天 提交于 2021-02-15 08:26:11
问题 When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying to use this in a script to do some setup, how can I make the apt-get run without user input? I know to reconfigure the tzdata I can do echo "America/New_York" > /etc/timezone dpkg-reconfigure -f noninteractive tzdata But when installing I need it to run fully even if it doesn't set the right timezone, I can always reconfigure it. I tried echo 5 | apt-get install -y tzdata but it is not

apt-get install tzdata noninteractive

我是研究僧i 提交于 2021-02-15 08:25:22
问题 When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying to use this in a script to do some setup, how can I make the apt-get run without user input? I know to reconfigure the tzdata I can do echo "America/New_York" > /etc/timezone dpkg-reconfigure -f noninteractive tzdata But when installing I need it to run fully even if it doesn't set the right timezone, I can always reconfigure it. I tried echo 5 | apt-get install -y tzdata but it is not

apt-get install tzdata noninteractive

谁说我不能喝 提交于 2021-02-15 08:24:59
问题 When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying to use this in a script to do some setup, how can I make the apt-get run without user input? I know to reconfigure the tzdata I can do echo "America/New_York" > /etc/timezone dpkg-reconfigure -f noninteractive tzdata But when installing I need it to run fully even if it doesn't set the right timezone, I can always reconfigure it. I tried echo 5 | apt-get install -y tzdata but it is not

On windows machine I get error : No matching manifest for windows/amd64

孤街醉人 提交于 2021-02-11 15:37:33
问题 I am new to docker , recently I have installed docker on my windows 10 machine(amd/64). But while using below link I am getting issues. https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-3.1 As per above link if I try to use image pull command : FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build I get below error : No matching manifest for windows/amd64 10.0.17134 in the manifest list entries I tried below steps to resolve this : 1.

gRPC-Node Error: Unexpected token u in JSON at position 0

蓝咒 提交于 2021-02-11 14:16:59
问题 So I keep getting this 'unexpected token u in JSON at position 0' error. I'm currently make a request from the main initiator which is making a gRPC request to customers gRPC server. When I don't containerize my files and manually npm install packages in each directory, it works smoothly. However, for some reason when I containerize my files, it has this issue. Usually this issue occurs with asynchronous requests (gRPC is async so makes sense), and I think they're racing to completion, but

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

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