Docker

When using docker option --mount the target folder is seen as not absolute, while there is no issue when using -v

99封情书 提交于 2021-02-11 14:56:25
问题 I am playing around with docker and ran into an issue when mounting docker volumes with --mount instead of -v. It appears to me that the error popping up is not valid, but probably I am missing a small detail here. The path to which I want bind the created image in the container is seen as not absolute in the --mount scenario. I am running Docker on a windows 10 machine I pulled the jenkins/jenkins:lts image and want to spin up 2 containers that use the same configuration. As said before I

Google cloud build permission error while deploying rasa to App engine

五迷三道 提交于 2021-02-11 14:55:12
问题 I am trying to deploy a rasa project described like here to google app engine, But the build failed due to some permission issues The scripts try to create a folder inside container, FROM rasa/rasa ENV BOT_ENV=production COPY . /var/www WORKDIR /var/www RUN rasa train ENTRYPOINT [ "rasa", "run", "-p", "8080"] I have added following permissions to google cloud build. Error log frome cloud build. Epochs: 100%|██████████| 100/100 [00:16<00:00, 6.04it/s, t_loss=1.485, i_loss=0.104, i_acc=1.000]

Trying to distribute data processing across a cluster and then aggregate it in master

蓝咒 提交于 2021-02-11 14:50:56
问题 Right now I have a Python Application which runs 50 threads to process data. It takes an xlsx file and will process a list of values, and will output a simple csv. I said to myself, since this is a simple Python App with 50 threads, How can I create a cluster to distribute data-processing even more? FOR EXAMPLE: Have each Worker node process a subset given to it by the master. Well that sounds easy, just take the master app slice up the dataset generated and then push it to the workers with

.NET Core Web API Application cannot connect to SQL server running on Docker

别来无恙 提交于 2021-02-11 14:49:16
问题 Using MAC. Error (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server). Connection string "Data Source=localhost,1433;Initial Catalog=MyDatabase;Integrated Security=True;User id=sa;Password=MyPassword;MultipleActiveResultSets=true" Using .NET Core 3.1. The Web API is running in a container The database is running on docker container. ports mapped 1433:1433 Able to query the database from Azure Data Studio. But while trying to connect from .net.core application it

Permission denied when connecting to docker daemon on jenkinsci/blueocean image deployed to kubernetes

萝らか妹 提交于 2021-02-11 14:32:57
问题 Summary Running a declarative pipeline job in jenkins which was deployed to a kubernetes cluster fails when using the docker agent with the following error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=node&tag=10.15.1: dial unix /var/run/docker.sock: connect: permission denied How can I solve this permission error in the kubernetes declaration? Background We have

Nginx reverse-proxy not serving static files

巧了我就是萌 提交于 2021-02-11 14:17:25
问题 I tried to start some services via docker-compose. One of them is a nginx reverse-proxy , handling different paths. One path ("/react") is to a containerized react_app with a nginx on port 80. Solely, the reverse-proxy is working correctly. Also, if I server the nginx of the react_app on port 80, all work's fine. Combining both without changing anything in the config leads to 404 for static files like css and js. Setup #1 Correct forward for path /test to Google. docker-compose.yml version:

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

Nginx reverse-proxy not serving static files

可紊 提交于 2021-02-11 14:13:56
问题 I tried to start some services via docker-compose. One of them is a nginx reverse-proxy , handling different paths. One path ("/react") is to a containerized react_app with a nginx on port 80. Solely, the reverse-proxy is working correctly. Also, if I server the nginx of the react_app on port 80, all work's fine. Combining both without changing anything in the config leads to 404 for static files like css and js. Setup #1 Correct forward for path /test to Google. docker-compose.yml version:

Jenkins with SSL over Docker

爷,独闯天下 提交于 2021-02-11 14:13:35
问题 I am trying to set up a Jenkins with SSL over Docker sudo docker run --name trial -d -p 443:8443 -p 50003:50000 -v /net/host/fs0/temp:/var/jenkins_home -httpPort=-1 -httpsPort=8443 -httpsKeyStore=/local/home/jenkins_keystore.jks -httpsKeyStorePassword=<password> --restart unless-stopped <ImageID> The container is created but I do not find the jenkins in my browser with https://< hostname >:443 . 回答1: You have the wrong order in your flags. All application-related flags need to be set after

Firefox(headless)+selenium cannot access internet from docker container

泄露秘密 提交于 2021-02-11 14:02:30
问题 I have tested the internet connection by wget https://www.google.com and it worked from inside the docker. But, when I run a headless firefox with selenium python binding, selenium throughs the TimeoutException : >> docker run myselcontainer Traceback (most recent call last): File "run.py", line 24, in <module> driver = webdriver.Firefox(service_log_path=os.devnull, options=options, capabilities=capabilities, firefox_profile=profile) File "/usr/local/lib/python3.8/site-packages/selenium