Dataset Viewer
Auto-converted to Parquet Duplicate
Response
stringlengths
8
2k
Instruction
stringlengths
18
2k
Prompt
stringlengths
14
160
Fixed it with these simpler steps ;)Reset Shared Drives in Docker for Windows. (Re-entering your credentials if needed by using the reset credentials link)Clean your VS solution and rebuildDebug
I was perfectly running an ASP.NET Core project in a docker container, but then I created another project in the same solution, which was referenced by the first one.When building, VS 2017 didn't complain. When debugging, VS says:"Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"Then I tried creating a ...
Visual Studio 2017 HRESULT: 0x80004004
get an account on docker hub.https://hub.docker.com/account/signup/once signed up (only do that once), you log in from the host that has the image you want to push:docker login (login with your username, password, and email address)then you push your image up there. you probably will need to tag it first. say you ...
I have a 5GB docker image named "ubuntu-dev-update-15", which I developed on my local Ubuntu 14 dev machine. In that image I have everything I need to do my development work. Now I need to be able to send this image to a different linux host. What is the procedure for doing that?
how to package a docker image in a single file
Great question. I did some research and, as far as I know, it's not possible with the current Docker/Moby implementation. It's also a problem for other properties as well, as you can see here (the issue is from 2014!):https://github.com/moby/moby/issues/3465I know it's really annoying, but, if you really want to remove...
I've a Dockerfile starting with theofficial nginx image.FROM nginxAnd they set themaintainer label.LABEL maintainer="NGINX Docker Maintainers <[email protected]>"So, now my image appears to also be maintained by them.$ docker image inspect example-nginx ... "Labels": { "maintainer": "NGINX Docker Ma...
How do I unset a Docker image label?
Is this what you looking for?docker image inspect --format "{{.ID}} {{.RepoTags}} {{.Architecture}}" $(docker image ls -q)output:sha256:fb495265b81ffaa0d3bf8887231b954a1139b2e3d611c3ac3ddeaff72313909c [postgres:10.11-alpine] amd64Explanation:$(docker image ls -q)→ pass all image IDs as parameters to inspect commanddock...
I own a Mac M1 and I run Docker on it. On OSX, Docker can run native ARM images but also emulate x86/amd64 to run images that were not built for ARM.My question is simple: From the command line, I am trying to find an extension of the command 'docker image ls' which displays the imageplatform.$ docker image lsREPOSITOR...
List Docker images for ARM from the CLI
I found this old issue today using docker composer. Python logging module checks the output is a terminal so you need to addtty: trueto the service. Example:version: '2' services: django: tty: true command: python -u manage.py runserver 0.0.0.0:8080 ports: - "8080:8080"
I'm writing a Dockerfile which needs to run multiple commands as part of theCMDinstruction and I thought the right way to do this would be to run a shell script with the main daemon executed viaexec. Unfortunately, as part of that process some of my output (stdout? stderr? I don't know, and I don't know how to find out...
When running a Django dev server with docker/fig, why is some of the log output hidden?
apt-getgenerally needs to run as root, but once you've run aUSERcommand, commands don't run as root any more.You'll frequently run commands like this at thestartof the Dockerfile: you want to take advantage of Docker layer caching if you can, and you'll usually be installing dependencies the rest of the Dockerfile need...
I am learning to use Docker with ROS, and I am surprised by this error message:FROM ros:kinetic-robot-xenial # create non-root user ENV USERNAME ros RUN adduser --ingroup sudo --disabled-password --gecos "" --shell /bin/bash --home /home/$USERNAME $USERNAME RUN bash -c 'echo $USERNAME:ros | chpasswd' ENV HOME /home/$U...
Why does simple Dockerfile give "permission denied"?
Using your Dockerfile with my project I added a line before the last one as follows:RUN poetry config installer.max-workers 10 RUN poetry install --no-interaction --no-ansi -vvvIt worked for me!
I cannot build my docker image. It throws "Connection is full" error when installing dependencies via Poetry. This does not happen on my host machine. How can I solve this. Do I need to increase the pool size? If yes, how?My DockerfileFROM python:3.10-alpine AS python ENV PYTHONUNBUFFERED=true WORKDIR /app FROM python...
Poetry install throws "Connection pool is full, discarding connection: pypi.org. Connection pool size: 10" error when building Docker image
You need to advertise yourKafkabroker askafka, which is the effective hostname for all linking containers (i.e. the hostname that the client needs to connect to from theKafkaprotocol perspective, and sokafka:9092is correct, not0.0.0.0):kafka: ... environment: KAFKA_ADVERTISED_HOST_NAME: kafka
I'm trying to use microservicesSpring BootwithKafka, but mySpring Bootcontainers can not connect to theKafkacontainer.docker-compose.yml:version: '3' services: zookeeper: image: wurstmeister/zookeeper container_name: zookeeper restart: always ports: - 2181:2181 kafka: image: wurstmeiste...
Spring Boot containers can not connect to the Kafka container
But one service can not interact with another service since they are not on the same machine and tcp://localhost:61001 will obviously not work.Actually, they can. You are right thattcp://localhost:61001will not work, because usinglocalhostwithin a container would be referring to the container itself, similar to howloca...
We're dockerizing our micro services app, and I ran into some discovery issues.The app is configured as follows:When the a service is started in 'non-local' mode, it uses Consul as its Discovery registry. When a service is started in 'local' mode, it automatically binds an address per service (For example, tcp://localh...
Can (or should) 2 docker containers interact with each other via localhost?
Volumes are treated as mounts in Docker, which means the host directory will always be mounted over the container's directory. In other words, what you're trying to do isn't currently possible with Docker volumes.See this Github issue for a discussion on this subject:https://github.com/docker/docker/issues/4361One poss...
I have a docker container that holds a django app. The static files are produced and copied to a static folder.container folder hierarchy:- var - django - app - staticbefore i build the docker image, i run./manage.py collectstaticso the static files are in the/var/django/staticfolder. To expose the ...
expose files from docker container to host
You have to installlibltdl-devin order to get everything working correctly. Create aDockerfilethat looks like this:FROM jenkins:latest USER root RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y sudo libltdl-dev \ && rm -rf /var/lib/apt/lists/* RUN echo "jenkins ALL=NOPASSWD: ALL" >>...
I want to run Jenkins in Docker container. Everything is OK. I can run it like this:docker run -d --name jenkins -t -i -p 49001:8080 jenkinsI can also add persistent storage. The problem came when I created a pipeline can has to executedockercommands (buildandpush). First the error was that docker wasn't installed on t...
Jenkins in Docker container (run docker pipeline)
Yes, you can run gitlab-ce on windows using Docker. First, make sure docker is installed on Windows, otherwiseinstall it.A detailed documentation for how to run gitlab using Docker is found underGitLab Docker imagesincluding how to access the web interface.
I searched a lot and found thatGitLab Community Editionis not installed onWindowsso now I want to install it with the help of Docker. I do not know that is it possible and how I can do it ?
install gitlab on Windows with Docker
It is possible to specify the size limit while creating the docker volume usingsizeas per thedocumentationHere is example command provided in the documentation to specify the samedocker volume create -d flocker -o size=20GB my-named-volumeUPDATESome more examples fromgit repository:The built-inlocaldriver on Linux acce...
If I would like to create a data volume of let´s say 15GB that would be of type ext4, how would I do that?docker volume create --name voljust creates an empty volume.docker volume create --opt type=ext4 --name volcreates an ext4 volume but I cannot specify the size of it since ext4 does not support it according to the ...
How to specify the size of a shared Docker volume?
The default capability set granted to containers does not allow a container to modify network settings. By running in privileged mode, you grant all capabilities to the container -- but there is also an option to grant individual capabilities as needed. In this case, the one you require is called CAP_NET_ADMIN (full li...
I'm trying to route all traffic of a docker container throughmitmproxyrunning in another docker container. In order formitmproxyto work, I have to change the gateway IP of the original docker container.Here is an example of what I want to do, but I want to restrict this to be entirely insidedockercontainers.Any thought...
Running docker container through mitmproxy
Make sure the dns is set properly. I had some issues that were gone after thedockerservice restart. If it didn't help you may want to use the--dns 8.8.8.8docker switch.Restarting docker service:on systemd architecture -sudo systemctl restart dockerboot2docker -boot2docker restartDocker Machine -docker-machine restart A...
I am deploying a simple node.js app on a digital ocean server 's docker platform.// package.json{ "name": "docker-centos-hello", "private": true, "version": "0.0.1", "description": "Node.js Hello world app on CentOS using docker", "author": "Daniel Gasienica <[email protected]>", "dependencies": { "expr...
can't install npm in the docker container?
tldr; This is attydefault behaviour and unrelated to docker. Per theticket filed on github about your exact issue.Quoting the relevant comments in that ticket:Looks like this is indeed TTY by default translates newlines to CRLF$ docker run -t --rm debian sh -c "echo -n '\n'" | od -c 0000000 \r \n 0000002disabling "t...
I'm using Docker client Version: 18.09.2.When I run start a container interactively and run adatecommand, then pipe its output tohexdumpfor inspection, I'm seeing a trailing\nas expected:$ docker run --rm -i -t alpine / # date | hexdump -c 0000000 T h u M a r 7 0 0 : 1 ...
Why do "docker run -t" outputs include \r in the command output?
I am running into the exact same issue. I did find that flushing stdout causes the logging to appear when it otherwise would not. Looks like a bug in Cloud Run to me.print(json.dumps(entry)) import sys sys.stdout.flush()Output with flushing
I followed this guidehttps://firebase.google.com/docs/hosting/cloud-runto setup cloud run docker. Then I tried to follow this guidehttps://cloud.google.com/run/docs/loggingto perform a simple log. Trying to write a structured log to stdout This is my code:trace_header = request.headers.get('X-Cloud-Trace-Context') ...
Simplest way to perform logging from Google Cloud Run
Because Docker is based on Linux, it cannot run directly on Windows/OS X. Instead, it runs inside a VirtualBox virtual machine (a Docker Machine) that runs a Linux operating system. That's why when you install Docker Toolbox you see that VirtualBox is installed.To see files and folders inside this virtual machine, used...
I'm running Docker 1.11 on OS X and I'm trying to figure out where my local volumes are being written. I created a Docker volume by runningdocker volume create --name mysql. I then randocker volume inspect mysqland it output the following:[ { "Name": "mysql", "Driver": "local", "Mountpoint":...
Docker volume mount doesn't exist
It looks like for your case database is overhead. You just need some distribute lightweight key-value storage with shared key lock support. Here are some candidates:etcd (https://coreos.com/etcd)consul (https://www.consul.io, especiallyhttps://www.consul.io/docs/commands/lock.html)redis (http://redis.io)
I have a simple C++ service (API endpoint) that increases a counter every time the API is called. When the caller posts data tohttp://10.0.0.1/addthe counter has to be incremented by 1 and return the value of the counter to the caller.Things get more complicated when the service is getting dockerized. When two instance...
How to atomically update a counter shared between Docker instances
In the Dockerfile, add a local file using ADD, e gADD your-local.jar /some-container-locationYou could use volumes to put a file in the container in runtime, e gVOLUME /copy-into-this-dirAnd then you run usingdocker run -v=/location/of/file/locally:/copy-into-this-dir -t me/java7You can use ENTRYPOINT and CMD to pass a...
I have a java application (jar file) that I want to be able to run from a docker image.I have created a Dockerfile to create an image using centos as base and install java as such:Dockerfile FROM centos RUN yum install -y java-1.7.0-openjdkI randocker build -t me/java7after to obtain the image me/java7however I am stuc...
How to create docker image for local application taking file and value parameters
The.envfile in the project root, and theenv_file:field in the Compose file are two different concepts.The.envis for settings a default environment forCompose. Values set in this file can be used within the Compose file.Theenv_file:field is for setting the default environment for acontainer. Values set in this can be us...
Here's my compose filedev.ymlversion: '2' volumes: rethinkdb_data_dev: {} services: rethinkdb: image: rethinkdb:latest volumes: - rethinkdb_data_dev:/home/rethinkdb_data rabbitmq: image: rabbitmq:latest fumio: build: context: . dockerfile: ./compose/fumio_dev/Dockerfile ...
docker-compose not recognizing env_file file/location, and still tries to use the default .env
This kind of asterisk expansion is done by the command line processor - the shell - and you circumvent that by invoking java directly.Much the same way as commands should be invoked with "CMD /C" under Windows to get full treatment.Invoke/bin/shinstead.
I have aDockerfilewith the followingCMDto start my spring boot app:FROM java:8-jre # ... CMD ["java", "-jar", "/app/file*.jar"]When I try to start a container from the created image I get:Error: Unable to access jarfile /app/file*.jarBut when I override theCMDwhile starting the container and execute the command in the ...
Why does wildcard for jar execution not work in docker CMD?
You can pass a space-separated string to builds then convert string to an array or just loop over the string.DockerfileFROM alpine ARG items RUN for item in $items; do \ echo "$item"; \ done;pass value during build timedocker build --build-arg items="item1 item2 item3 item4" -t my_image .outputStep 3/3 : RUN fo...
I am calling the docker build command from a shell script and I wanna pass an array in the build args .. First question can I really do that ? If yes then how do i iterate inside the docker file. A Small example will really help.
How can I pass array into a dockerfile and loop through it?
You should do a Robomongo SSH tunnel connection to MongoDB inside docker container. First of all you should install a ssh server inside your docker container.https://docs.docker.com/engine/examples/running_ssh_service/After that you should configure your connection in Robomongo. Inside "Connection Settings" there are c...
I'm running aNodeJSApp withdocker-compose. Everything works fine and I can see all my data by connecting to Mongo inside container. But when I connect toRoboMongoI don't see any data.How can I deal with this problem?
connect robomongo to mongoDB docker container
There's no way to export a variable from a script to a child image. As a general rule, environment variables travel down, never up to a parent.ENVwill persist in the build environment and to child images and containers.DockerfileFROM busybox ENV PLATFORM_HOME test RUN echo $PLATFORM_HOMEDockerfile.childFROM me/platform...
I've search some of the questions already likedocker ENV vs RUN export, which explains differences between those commands, but didn't help in solving my problem.For example I have a script calledmyscript:#!/bin/bash export PLATFORM_HOME="$(pwd)"And have following lines in Dockerfile:... COPY myscript.sh / RUN ./myscrip...
docker run script which exports env variables
Unfortunatelyhostnetworking isnot availableforDocker for Windowsandneither ismacvlannetworking. If you are not stuck onHyper-V, consider usingDocker Toolboxon Windows.Quoted from:https://docs.docker.com/network/network-tutorial-host/#prerequisitesThe host networking driver only works on Linux hosts, and is not supporte...
I have windows 10 pro and I'm trying to run a docker with network mode host.my issue is that I can't run a docker and access it using the host ip not 127.0.0.1 and not the ip (in linux it works differently).looks like the hyper v has it's own network that not accessible using the host ipdocker run -d --network=host ngi...
windows run docker with --network=host and access with 127.0.0.1
So this regular expression:[a-z0-9]+(?:[._-][a-z0-9]+)*doesn't include any upper case letters. So you should change your image name todevopsclient
I am trying to build my image using this plugin:https://github.com/spotify/docker-maven-plugin#use-a-dockerfileWhen I runmvn clean package docker:buildI get this error:[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (defa ult-cli) on project demo: Exception caught: Request error: POST https:/...
docker repository name component must match
Permission denied on a default install indicates you are trying to access the socket from a user other than root or that is not in the docker group. You should be able to run:sudo usermod -a -G docker $usernameon your desired $username to add them to the group. You'll need to logout and back in for this to take effect ...
I am trying to run Python CGI script inside which I need to run docker image. I am using Docker version 1.6.2. user is "www-data", which is added in docker group.www-data : www-data sudo dockerOn machine, with www-data I am able to execute docker commandswww-data@mytest:~/html/new$ docker ps CONTAINER ID IMAGE ...
/var/run/docker.sock: permission denied while running docker within Python CGI script
You are correct, unless there is some special routing happening, the fact that the containers are running means your services are available.You can see the ports being exposed from thedocker ps -acommand:CONTAINER_ID: 560f78689902 IMAGE: moviedecisionweb:dev COMMAND: "C:\\remote_debugger\\…" CREATED: About a minute a...
I build a very simple web app and web api on .net core and configured the docker-compose to get them to communicate over the same network correctly.On visual studio, when I hit play on the Docker Compose project, it runs fine, both the web app and the web api work and communicate correctly.On the Docker Desktop app i ...
How to access a website running on docker after closing the debug on Visual Studio
After some more reading I finally figured it out.Instead ofdotnet buildyou run:dotnet publishThis will place all files (including dependencies) in apublishfolder. And this folder then can be used directly with amicrosoft/dotnet:-coreimage.
I'm trying to build a .NET Core app docker image. But I can't figure out how I'm supposed to get the project's NuGet dependencies into the image.For simplicity reasons I've create a .NET Core console application:using System; using Newtonsoft.Json; namespace ConsoleCoreTestApp { public class Program { ...
How to include dependencies in .NET Core app docker image?
The Docker cli uses the Golang CLI managerspf13/cobrato handle its flags such as--entrypoint.Thisis where the entrypoint is extracted:flags.StringVar(&copts.entrypoint, "entrypoint", "", "Overwrite the default ENTRYPOINT of the image")StringVarfrom thespf13/pflaglibrary will only extract the first string after the flag...
I'm trying to understand a discrepancy betweenENTRYPOINTin Dockerfile anddocker run --entrypoint. Theexecform ofENTRYPOINTallows multiple parameters,# Source: https://docs.docker.com/engine/reference/builder/#entrypoint ENTRYPOINT ["executable", "param1", "param2"]butdocker run --entrypoint=executableaccepts only one. ...
Docker run --entrypoint with multiple parameters
I went down the road thatBenjamin W.was talking about with havingVERSIONin my environment vs just in that specific step.This worked for me to set the variable in one step, then use it in separate steps.- name: Set variables run: | VER=$(cat VERSION) echo "VERSION=$VER" >> $GITHUB_ENV - name: Build Docker Ima...
In my Docker project's repo, I have a VERSION file that contains nothing more than the version number.1.2.3In Travis, I'm able tocatthe file to an environment variable, and use that to tag my build before pushing to Docker Hub.--- env: global: - USER=username - REPO=my_great_project - VERSION=$(cat VERSIO...
GitHub Actions: How to get contents of VERSION file into environment variable?
The reason behind requiring a reverse proxy in front of Artifactory is related to a Docker client limitation - you cannot use a context path when providing the registry path, e.g sdpvvrwm812.ib.tor.company.com:8081/artifactory/api/docker/docker-imagesis not valid.The Docker client assumes you are working with one big r...
I tried to set up artifactory as docker registry as shown in this video:http://www.jfrog.com/video/artifactory-docker-integration/However, I don't have SSL installed in artifactory so I'm using the --insecure-registry flag. (as shown inerror in docker build publish pluginandRemote access to a private docker-registry)An...
artifactory as docker registry
I also had a similar issue with version23.0.2. For me it was missing buildx package. Following command solved the issue.apt-get install docker-buildx-pluginMessage and docs of docker on linux are a bit vague unfortunately. I found out the missing package while I was planning to install docker from scratch.
When I try to do a Docker Build using Docker as usual, I get the error message in the image and cannot Build. What should I do in this case? By the way, Docker's version is 23.0.1. (https://i.stack.imgur.com/AzgNi.png)(https://i.stack.imgur.com/PIryk.png) (https://i.stack.imgur.com/kMF5Y.png)When I uninstall docker bui...
docker Buildx "ERROR: BuildKit is enabled but the buildx component is missing or broken" error
Are you trying to connect inside the container?If not, you may fight this other unrelated question (covering the outside container case) helpful:From inside of a Docker container, how do I connect to the localhost of the machine?
I start my docker container with:docker run -it --expose 10001 --expose 8080 -p 10001:10001 -p 8080:8080 -p 80:80 --rm lucchi/covid90/100eMy docker -ps then has:CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
curl: (7) Failed to connect to localhost port 10001: Connection refused DOCKER
For intellij, it can also be resolved by addingDOCKER_TLS_VERIFYandDOCKER_CERT_PATHto your run/debug configuration as environment variables.The value of each can be empty (depending on your docker setup) so the run/debug configuration shows:DOCKER_TLS_VERIFY=;DOCKER_CERT_PATH=
I went through links likehttps://github.com/docker/compose/issues/3021andhttps://github.com/docker/compose/issues/3937, but still I am facing below error:C:\Users\pc\Downloads\docker-compose-scripts>docker-compose up --d ERROR: TLS configuration is invalid - make sure your DOCKER_TLS_VERIFY and DOCKER_CERT_PATH are set...
ERROR: TLS configuration is invalid - make sure your DOCKER_TLS_VERIFY and DOCKER_CERT_PATH are set correctly. on windows
The exit code6means that "Host public key is unknown.sshpass exits without confirming the new key."So either you populate before that the~/.ssh/known_hostswith the fingerprint of the host, or just ignore the check of the host public key by adding theStrictHostKeyChecking=nooption to the scp.The updated line would look ...
I have the following in my docker file:RUN sudo apt-get install sshpass -y RUN sshpass -p userPassword scp -r user@server:~/data/* ./But when I try and build my image it fails with:Exception caught: The command '/bin/sh -c sshpass -p userPassword scp -r user@server:~/data/* ./' returned a non-zero code: 6 -> [Help 1]Ho...
Docker RUN fails with "returned a non-zero code: 6"
Update Jun 2016The answer below is outdated starting with docker 1.10. See this other similar answer for the new solution.https://stackoverflow.com/a/34476794/1556338Old answerCreate a network:$ docker network create --driver bridge my-netReference that network as an environment variable (${NETWORK})in the docker-compo...
This question already has answers here:Communication between multiple docker-compose projects(20 answers)Closed1 year ago.I have a dockerized application with a few services running using docker-compose. I'd like to connect this application with ElasticSearch/Logstash/Kibana (ELK) using another docker-compose applicati...
Connect two instances of docker-compose [duplicate]
Add an environment variable to yourffsection of the Docker Compose file (and you can remove the link):ff: container_name: ff image: selenium/node-firefox environment: - HUB_PORT_4444_TCP_ADDR=hub expose: - "5555"Compose version 2 uses a different style of networking. From theupgrading guide:environment ...
I have a docker-compose file that I upgraded from version 1 to version 2.It set ups a simple Selenium hub with a firefox node.When I set it up as version 1 it launches fine. When I set it up with version 2 the ff container returns"Not linked with a running Hub container"and exits.As I researched it and understood it , ...
Containers are not linked with docker-compose version 2
Compose will create adefaultnetwork for you as long as you use the version 2 format, but if you'd like to customize the networks the docs are here:https://docs.docker.com/compose/compose-file/#network-configuration-referencehttps://docs.docker.com/compose/networking/#specifying-custom-networksYou can create anetworksse...
Thedocumentation about networking is currentlyvery vague on this ― how do you accomplish adocker-compose.ymlthat createsa virtual network, letting the services (containers) defined by it communicate on that network?Goal in this scenario being not relying on a pre-defined network, for an ensemble of containers defined f...
How do you define a network in a version 2 docker-compose definition file?
The following configuration worked for me with nginx version:nginx/1.14.0 (Ubuntu):location = /health { access_log off; add_header 'Content-Type' 'application/json'; return 200 '{"status":"UP"}'; }To test it:Install Nginx locally, example on Ubuntu:https://www.digitalocean.com/co...
I have a docker container running with nginx server.I want to provide a rest-interface/endpoint to check the health of the server and container. E.g. GEThttp://container.com/health/which delivers "true"/OK or "false"/NOK.What is the simplest and quickist solution or best practice?P.S. The server serves as a file browse...
Simple healthcheck endpoint in nginx server container
Try this. It's sorting the problem of many people.cd "C:\Program Files\Docker\Docker" ./DockerCli.exe -SwitchDaemon
I continue to get the following error when trying to start docker on Windows 10 pro. my HyperV is turned on and running: Version 18.04.0-ce-win62 (17151) Channel: edge e0a85f6Any help would be appreciated!Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common pa...
Can't start docker on windows
In order to set/proc/sys/net/bridge/bridge-nf-call-iptablesby editing/etc/sysctl.conf. There you can add [1]net.bridge.bridge-nf-call-iptables = 1Then executesudo sysctl -pAnd the changes will be applied. With this the pre-flight check should pass.[1]http://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.con...
Use this guide to install Kubernetes on Vagrant cluster:https://kubernetes.io/docs/getting-started-guides/kubeadm/At(2/4) Initializing your master, there came some errors:[root@localhost ~]# kubeadm init [kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters. [init] Using Kubernetes version...
Can't install Kubernetes on Vagrant
In fact Docker documentation offers you how to set up a swarm cluster 'manually' without using docker-machine:Create a swarm for development
Currently I have a bunch ofRHEL7 VMsrunning onRackSpaceand want to deploy docker swarm for testing purpose. TheDockerDocs only describes the method to deploy docker swarm by using docker machine.Question:SinceVirtualBoxcannot be used in VMs, are any other ways such that I can directly deploy docker swarm on my VMs with...
Deploying docker swarm without using docker machine
Youreallyshouldn't uselatestin production or anything beyond local machine testing/learning. It makes everything ambiguous as to which image you're using, and you can't tell indocker service ls/psif it's current by default and all sorts of other ambiguities (like SHA's not being visible in Docker Hub's GUI).If you have...
In the.ymldefinition, I'm always pulling thelatestimage of my service.When I push a new image to the registry and I want to update the image that the service in my stack uses. I don't see any--pullflag, and the documentation fordocker service updatedoesn't explicitly mentions this.How can I re-deploy using the recently...
How can I update the latest image that my docker service/stack uses?
So it turns out that the method I listed about with the config.yml was correct. The reason I was seeing a partially successful deployment was because the previously running docker container on the hosts was not being stopped by EB.I think that what was happening was that EB is sending something likesudo docker kill --s...
I am running an elasticbeanstalk application, with multiple environments. This particular application is hosting docker containers which host a webservice.To upload and deploy a new version of the application to one of the environments, I can go through the web client and click on "Upload and Deploy" and from the file ...
Deploy to elasticbeanstalk via CLI deploy command with Dockerrun.aws.json
I solved it usingwhilp/ssh-agent, though you should note that this isnotusingSSH_AUTH_SOCKdirectly and requires an additional long running container. I'll integrate this approach intodocker-railsfor ease of use.Start a long running containerdocker run -d --name=ssh-agent whilp/ssh-agent:latestAdd your keydocker run --...
Could not open a connection to your authentication agent.I am following theapproach of mounting the$SSH_AUTH_SOCKas a volume, but doing so with compose.Setup~/.ssh/configHost * ForwardAgent yesDockerfile:FROM atlashealth/ruby:2.2.2 RUN apt-get update -qq && \ apt-get install -qy build-essential libxml2-dev libxs...
SSH Agent forwarding inside docker compose container
If you want to download files from a docker container to your local machine, you can do it with Docker itself (no need for SSH):docker cp :/path/to/file /host/target/pathUpdate: I just read that you are connected to a remote container. Then you can use SCP for that:scp user@host:/path/to/file /local/path
I have a running container on a remote machine. I am connected to the machine via ssh. Now i would like to download a certain file from the container. Can somebody give me some tips how to achieve that ? Thanks. 🙂
Copy file from remote docker container
I found out that thenode's alpine image ships with yarn.Yarnis Facebook's npm replacement and you can use it to globally install npm@5:RUN npm -v RUN yarn global add npm@5 RUN npm -v COPY ./ ./ RUN npm run setup(The version calls are superfluous and only to highlight that the upgrade works.)And now it works:Step 4/9 : ...
Locally, I have successfully installed npm@5 via:$ npm install npm@5 -g $ npm -v $ 5.0.0And locally, I can run the npm setup just fine (it's basicallynpm i && tsc)$ npm run setup updated 102 packages in 3.499sYet now I also have a Dockerfile based upon thenode:7.10-alpineimage which breaks if I try to installnpm@5ther...
How to upgrade npm to npm@5 on the latest node docker image?
They have changed the repo for .NET Core 2.1 onwards tomicrosoft/dotnet. Change your FROM statement to reference microsoft/dotnet using the following tags:2.1-sdk2.1-aspnetcore-runtime2.1-runtimeDocumentation on how to upgrade can be foundhere
Created a new .NET CORE 2.1 (preview) web app. Running it in local docker with Linux container I am getting compiler error:Error Building blobtestService 'blobtest' failed to build: manifest for microsoft/aspnetcore:2.1 not found.My dotnetversionC:\WINDOWS\system32>dotnet --version 2.1.300-preview2-008530
AspNetCore:2.1 not found
I'm not sure you can do that exactly. Kubernetes does things quite differently than docker, and isn't really ideal for interacting with the 'host' you are probably used to with docker.A few alternative possibilities come to mind. First, and probably least ideal but closest to what you are asking, would be to add the fi...
How can I inject code/files directly into a container in Kubernetes on Google Cloud Engine, similar to the way that you can mount host files / directories with Docker, e.g.docker run -d --name nginx -p 443:443 -v "/nginx.ssl.conf:/etc/nginx/conf.d/default.conf"Thanks
Inject code/files directly into a container in Kubernetes on Google Cloud Engine
As ofDocker v1.11you can filterpsbyvolumes! Unfortunately this is not available inprevious versions.Here's how it would be used:docker ps -f "volume=/var/lib/mysql"ordocker ps -f "volume=centos_db_symfony"
I can list all containers withdocker ps (-a), I can list all volumes withdocker volumes ls, when I inspect avolume, I can see thename,driverandmountpoint, but not the container(s) it is being used by.When I usedocker inspect , I can see the Mount data like this for example:"Mounts": [ { "Name": "centos_db_s...
How to see which docker volume is or was being used by which container
As the error describes,xargsis not available.Looking at your Dockerfile, the jdk image you use, is based on Oracle LinuxSo you need to add the following line, which installs the required packageRUN microdnf install findutilsFor the Alpine based images the command would be:RUN apk update && apk add findutilsYour Dockerf...
I'm trying to run a hello word java application in docker. The application is produced by gradle init. I use gradle installDist to generate runnable file. I can run the runnable locally without any problem. But I got the error when I try to run from docker. Here is the docker file content:FROM gradle:7.1.0-jdk11 AS bui...
Got error "xargs is not available" when trying to run a docker image
Kubernetes now has an experimental feature that enables limiting network bandwidth:https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/#support-traffic-shapingapiVersion: v1 kind: Pod metadata: annotations: kubernetes.io/ingress-bandwidth: 1M kubernetes.io/egress-bandwidt...
How to limit a container's network usage or bandwidth?I searched the Internet but it seems no existing mature solutions.I can modify the host, but cannot modify the program running in docker or docker itself. It means I can change the configurations, but not thecodeof docker that I need to re-build/re-compile.
How to limit docker image's network usage or bandwidth?
The difference isbuildvs.runThink of images as apps and containers as a process running an app. Running an app does not change the app. Running a container likewise does not change the image. Images are built fromDockerfilesusingdocker buildand are persistent. Containers are created as needed bydocker run,docker-com...
I am currently in the process of learning Docker. After reading the docs and a few articles I obviously have more questions than answers. Most intriguing one for me at the moment is: what is the difference betweenFROM some:docker-imageIn Dockerfile andimage: digitalocean.com/phpIn docker-compose.ymlI do understand that...
Dockerfile FROM vs Docker-compose IMAGE
The manager node doesn't share out the local images from itself. You need to spin up a registry server (or user hub.docker.com). The effort needed for that isn't very significant:# first create a user, updating $user for your environment: if [ ! -d "auth" ]; then mkdir -p auth fi touch auth/htpasswd chmod 666 auth/ht...
Maybe I missed something, but I made a local docker image. I have a 3 node swarm up and running. Two workers and one manager. I use labels as a constraint. When I launch a service to one of the workers via the constraint it works perfectly if that image is public.That is, if I do:docker service create --name redis...
Docker: Swarm worker nodes not finding locally built image
Your link is working, but you're on separate networks inside of Docker. From thedocker-compose.yml docs:Note: If you’re using the version 2 file format, the externally-created containers must be connected to at least one of the same networks as the service which is linking to them.To solve this, you can create your own...
I have started a docker container with the following commanddocker run --name mysql --restart always -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:5.7.14and then would like to connect a wordpress site with the following docker-compose.yml fileversion: '2' services: wordpres...
docker-compose + external container
docker-py(https://github.com/docker/docker-py) should be used to control Docker via Python.This will start an Ubuntu container runningsleep infinity.import docker client = docker.from_env() client.containers.run("ubuntu:latest", "sleep infinity", detach=True)Have a look athttps://docker-py.readthedocs.io/en/stable/con...
I would like to start the docker container from a python script. When i call the docker image through my code , i am unable to start the docker containerimport subprocess import docker from subprocess import Popen, PIPE def kill_and_remove(ctr_name): for action in ('kill', 'rm'): p = Popen('docker %s %s...
Starting docker container using python script
I came up with a work-around for the situation with suggestions from these sources:https://github.com/docker/machine/issues/1799https://github.com/docker/machine/issues/1872I logged into the Minikube VM (minikube ssh), and edited the/usr/local/etc/ssl/certs/ca-certificates.crtfile by appending my own ca cert.I then res...
I am attempting to use Minikube for local kubernetes development. I have set up my docker environment to use the docker daemon running in the provided Minikube VM (boot2docker) as suggested:eval $(minikube docker-env)It sets up these environment variables:export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168....
Can not pull docker image from private repo when using Minikube
HOSTYou won't be able to connect to the other container withlocalhost(aslocalhostis the current container) but you can connect via the container host (the host that is running your container). In your case you need boot2docker VM IP (echo $(boot2docker ip)). For this to work, you need to expose your port at the host le...
I have two services running in separate containers, one is grunt(application) and runs off port 9000 and the other is sails.js (server) which runs off port 1337. What I want to try to do is have the client app connect with the server through localhost:1337. Is this feasible? Thanks.
How to connect two docker containers through localhost?
According tothe documentation, if you pass an archive file from the local filesystem (not a URL) to ADD in the Dockerfile (with a destination path, not a path + filename), it will uncompress the file into the directory given.If is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) t...
I have a ~300Mb zipped local file that I add to a docker image. The next state then extracts the image.The problem is that the ADD statement results in a commit that results in a new file system layer makes the image ~300Mb larger than it needs to be.ADD /files/apache-stratos.zip /opt/apache-stratos.zip RUN unzip -q a...
Docker how to ADD a file without committing it to an image?
Making a few changes worked for me -Addcluster.initial_master_nodesto the elasticsearch service in compose -environment: - cluster.initial_master_nodes=elasticsearchvm.max_map_counton the linux box kernel setting needs to be set to at least 262144 -$ sudo sysctl -w vm.max_map_count=262144For development mode, you can...
I am using Docker Desktop with linux containers on Windows 10 and would like to launch the latest versions of the elasticsearch and kibana containers over a docker compose file.Everything works fine when using some older version like 6.2.4.This is the working docker-compose.yml file for 6.2.4.version: '3.1' services: ...
docker-compose.yml for elasticsearch 7.0.1 and kibana 7.0.1
After some research, I found out that thedocker logs -tcommand prints out timestamps in UTC and there is no config to change that. However, you could use a little script referenced inhttps://github.com/docker/cli/issues/604, where you could just pipe the output and change the given timestamp.
My local timezone and docker container's timezone are all set to 'GMT+8:00'. But the 'docker logs -t' still shows timestamp of 'GMT+0:00'.the picture below is a part of output of 'docker logs -t'. The left timestamp is printed by docker, and the right timestamp is printed by application in container.
how to set timezone of 'docker logs -t'?
YourDockerfileis fine, andCOPY package*.json ./is not necessary - its being copied with your entire app.The problem is in yourdocker-composefile.you defined:build: context: . dockerfile: ClientApp/Dockerfilethat means, yourDockerfilewill accept the docker-compose context, which is 1 directory above:├── dock...
I am trying to wire up my Angular 7 client app into docker compose locally.I get the following error when I docker-compose up:client-app | npm ERR! errno -2 client-app | npm ERR! syscall open client-app | npm ERR! enoent ENOENT: no such file or directory, open '/app/package.json'Dockerfile:FROM node:9.6.1 RUN...
npm can't find package.json when running docker container with compose
Here's how to update an existing image withdocker commit.launch a container with the image you want to modify:docker run -t -i IMAGE /bin/bashNote that you'll probably want to access some host files/directory to import changes in the container:docker run -t -i -v /host/location:/mnt/share IMAGE /bin/bashThen quit wi...
I want to leverage caching/layering of docker images to save bandwidth, disk space, and time spent.Let say:I've a web-app docker image installed and deployed into several docker hosts.The docker image contains source code of my web app.I worked on the code, and now have a new version of the code.How should I automate t...
Updating docker images with small changes using commits
It’s inside the virtual machine and isn’t directly accessible from the host.Debug-level commands likedocker volume inspectwill give you a path, but they really are only for emergency debugging and not for routine use. If you have a way to get a shell in the VM you can see that path, but you really shouldn’t be directl...
Need to know where docker volumes are located when using the docker machine on macOS. The installation is using boot2docker, so the VM works behind.Example:docker volume create test-datadocker inspect shows a path, but where can I find the specific (physical) location?
Where docker volumes are located?
Swarm is a very simple add-on to Docker. It currently does not provide all the features of Kubernetes. It is currently hard to predict how the ecosystem of these tools will play out, it's possible that Kubernetes will make use of Swarm.
From what I understand, Kubernetes/Mesosphere is a cluster manager and Docker Swarm is an orchestration tool. I am trying to understand how they are different? Is Docker Swarm analogous to the POSIX API in the Docker world while Kubernetes/Mesosphere are different implementations? Or are they different layers?
What is the difference between Docker Swarm and Kubernetes/Mesophere?
Yes, you often need to add extra resource files like certificates especially when using a minimal distribution like alpine but the fact that you can run go applications on such small distributions is often also seen as an advantage.To add the certificates this is a really good explanation outlining how to do it on a sc...
I want to build a Go 1.9.2 binary and run it on the Docker Alpine image. The Go code I wrote doesn't call any C code. It also uses thenetpackage. Unfortunately it hasn't been as simple as it sounds as Go doesn't seem to quite build static binaries all the time. When I try to execute the binary I often get cryptic messa...
How do I build a static Go binary for the Docker Alpine image?
You can achieve that by usingDocker Remote API.First of all adjust how docker daemon is running. Configure it to listen to HTTP requests on port 4243 in addition to the default unix socket:sudo sh -c "echo 'DOCKER_OPTS=\"-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock\"' > /etc/default/docker"Now, you can use the/...
As part of my deployment strategy, I am managing Docker containers with Upstart.To do that, I need to pull an image from a registry and create a named container (as suggested onUpstart script to run container won't manage lifecycle)Is there a way to create the container without first running the image? I don't want to ...
Create Docker container from image without starting it
Thanks to @stdunbar in the comments for pointing me in the right direction.EDIT: Thanks to @Imran in the comments. If you start lots of threads, they will absolutely be scheduled to multiple cores. This answer is only about gettingRuntime.getRuntime().availableProcessors()to return the right value. Many "thread pools" ...
I am running a task via Docker on AWS's ECS. The task does some calculations which are CPU-bound, which I would like to run in parallel. I start a thread pool with the number of threads specified inRuntime.getRuntime().availableProcessors()which works fine locally on my PC. For some reason, on AWS ECS, this always retu...
Runtime.getRuntime().availableProcessors() returning 1 even though many cores available on ECS AWS
We can create Docker image without Docker being installed.Jib Maven and Gradle PluginsGoogle has an open source tool called Jib that is relatively new, but quite interesting for a number of reasons. Probably the most interesting thing is that you don’t need docker to run it - it builds the image using the same stand...
Is it somehow possible to build images without having docker installed. On maven build of my project I'd like to produce docker image, but I don't want to force others to install docker on their machines.I can think of some virtual box image with docker installed, but it is kind of heavy solution. Is there some way to ...
Build docker image without docker installed
Looking athttps://registry.hub.docker.com/u/library/jenkins/, it seems that /var/jenkins_home is a volume. You can only create files there while the container is running, presumably with a volume mapping likedocker run ... -v /your/jenkins/home:/var/jenkins_home ...The docker build process knows nothing about shared v...
I'm new to Docker and try to build an image with a simple Dockerfile:FROM jenkins USER root RUN mkdir -pv /home/a/b RUN touch /home/a/b/test.txt RUN mkdir -pv /var/jenkins_home/a/b RUN touch /var/jenkins_home/a/b/test.txt USER jenkinsWhen I build it, it fails with the following output:Step 0 : FROM jenkins Step 1 : USE...
Building Dockerfile fails when touching a file after a mkdir
I've handled this by using thecomposer docker imageto install the dependencies.Clone the repo and then run the following command from within the root directory.docker run --rm --interactive --tty -v $(pwd):/app composer installBy mounting your repository into the container, the composer container will write thevendordi...
I currently have my own Laravel application running on Docker using Laravel sail on Windows 11 using Ubuntu on WSL2. This works fine and as intended. I've pushed my work onto a Git repository, but how would I be able to pull this onto a new system? The vendor files that come with Laravel sail when you install won't be ...
Laravel Sail after cloning from Git repository
OS X does not use the Linux kernel, so it cannot run in a Docker containerXCode is not open-sourced and does not have a Linux installer, so it cannot be used in a Linux Docker image.It seems like your best bet is to build a Packer template using something likepacker-macososx-vm-templatesand integrate that into your pip...
For CI purposes I have a need to set up a cluster of build slaves capable of building iOS apps. For now I'm relying on a single MacMini -with the aim to deploy several more in the future- and I'd like to virtualize several slaves on top of it. Some of these virtual slaves will build the iOS app, others will be smaller ...
How to dockerize Xcode
Maybe you can try this:Before you callRUN,ADDthe .env file into the imageADD proxies.env proxies.envthen prefix your RUN statement:RUN export `cat proxies.env` && echo "FOO is $FOO and BAR is $BAR"This produces the following output:root@armenubuntudev:~/Dockers/set-env# docker build -t ashimoon/envtest . Sending build ...
I have a Dockerised application which I would like to run in both proxy and non-proxy host environments. I'm trying to resolve this problem by copying the normal environment variables, such as http_proxy, into the containers if and only if they exist in the host.I can get 90% of the way there by runningset | grep -i _p...
How to make environmental variables available to Docker RUN commands from docker-compose?
Something in Ansible appears to be recognizing that as valid Python, so it's getting transformed into a Python list and then serialized using Python'sstr(), which is why you end up with the single-quoted values.An easy way to work around this is to stick a space at the beginning of the value, which seems to prevent it ...
I am trying to generate Dockerfiles with Ansible template - see the role source and the template in Ansible Galaxy andGithubI need to genarate a standard Dockerfile line like:... VOLUME ["/etc/postgresql/9.4"] ...However, when I put this in the input file:... instruction: CMD value: "[\"/etc/postgresql/{{postgresql_ve...
why ansible always replaces double quotes with single quotes in templates?
AddUSER rootto yourDockerfile:FROM mcr.microsoft.com/mssql/server:2019-latest USER root SHELL ["/bin/bash", "-c"] COPY ./CompanyCert.crt /usr/local/share/ca-certificates/CompanyCert.crt RUN update-ca-certificates
I ran this command:docker pull mcr.microsoft.com/mssql/server:2019-latestI then made a dockerfile to use this container image as a base image for another container# escape=` FROM mcr.microsoft.com/mssql/server:2019-latest SHELL ["/bin/bash", "-c"] COPY ./CompanyCert.crt /usr/local/share/ca-certificates/CompanyCert.c...
Switch to Root User in a Dockerfile
Uselinkswhen you want to link together containers within the same docker-compose.yml. All you need to do is set the link to the service name. Like this:--- elasticsearch: image: elasticsearch:latest command: elasticsearch -Des.network.host=0.0.0.0 ports: - "9200:9200" logstash: image: logstash:latest co...
I believe it is simple question but I still do not get it from Docker-compose documentations. What is the difference between links and external_links?I like external_links as I want to have core docker-compose and I want to extend it without overriding the core links.What exactly I have, I am trying to setup logstash w...
Docker-compose links vs external_links
It is able to create a docker container from TFS and integrate with build/Release pipeline. Some tutorials for this area:Continuous Deployment with Docker and Build vNextUsing docker on Windows in VSTS build and release managementHowever it's not possible to build a Windows 7 Docker Container. If you plan on doing a...
We are running on-premises TFS 2017. I would like to create a release definition for our QA team which will create a Docker container running Windows 7, and deploy our release build to it automatically.Once the deployment is done the QA team should be able to log onto the container to test the app. No manual running o...
Is it possible to create a docker container from TFS and deploy a release build to it?
It seems that Docker-compose came before the swarm and stack and maybe the new solution of swarm + stack makes compose obsolete, but it still remains for legacy reasons. Is this thinking correct?In short, yes. Compose came before all the Swarm stuff (it originated as a 3rd party utility calledfig). To make matters wors...
From what I read it seems that Docker-Compose is a tool to create multiple containers on a single host while Docker Swarm is a tool that can do the exact same thing but with more control and on multiple hosts with the help of Docker Stack. I went through the tutorial and also came across this thread:docker-compose.yml ...
What benefits does Docker Compose have over Docker Swarm and Docker Stack?
Please take a look at the following compose script. I tried and tested. It works fine.version: '2' services: db: image: mysql:latest container_name: db_server volumes: - ./database/data:/var/lib/mysql - ./database/initdb.d:/docker-entrypoint-initdb.d restart: always environment: ...
Ive been making new sites with Wordpress & Docker recently and have a reasonable grasp of how it all works and Im now looking to move some established sites into Docker.Ive been following this guide:https://stephenafamo.com/blog/moving-wordpress-docker-container/I have everything setup as it should be but when I go to ...
Moving Wordpress site to Docker: Error establishing DB connection
I've been having the same problem with the Docker Cassandra image. You can use my docker container onGithubor onDocker hubinstead of the default Cassandra image.The problem is that the cassandra.yaml file has start_rpc set to false. We need to change that. To do that we can use the following Dockerfile (which is what m...
I'm trying to start up a docker image that runs cassandra. I need to use thrift to communicate with cassandra, but it looks like that's disabled by default. Checking out the cassandra logs shows:INFO 21:10:35 Not starting RPC server as requested. Use JMX (StorageService->startRPCServer()) or nodetool (enablethrift)...
Enable Thrift in Cassandra Docker
ComposeCompose doesn't have "tasks" as built in concept, but you can set them up with multiple compose files in a project. Adocker-compose-init.ymlcould define the tasks, rather than long running services but you need to manage orchestration yourself. I've put anexample on my consul demo.docker-compose up -d docker-com...
I am trying to spin a Consul server on docker container and use it as config server for my SpringBoot cloud application. For that I want to have some pre-configured data(Key-Value pairs) in Consul.My current config in docker-compose.yml is:consul: image: "progrium/consul:latest" container_name: "consul" por...
How to run Consul on docker with initial key-value pair data?
I use a docker-compose and i add in.envfileREDIS_URL=redis://redis:6379/0
I am getting this error while running my rails app with docker and docker-compose Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)Please find my Docker file# Copy the Gemfile as well as the Gemfile.lock and install # the RubyGems. This is a separate step so the dependencies # will be cached unless chan...
rails + docker + sidekiq + Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
Yes, with init-containers it's quite straightforward:apiVersion: v1 kind: Pod metadata: name: thp-test spec: restartPolicy: Never terminationGracePeriodSeconds: 1 volumes: - name: host-sys hostPath: path: /sys initContainers: - name: disable-thp image: busybox volumeMounts: ...
I deploy Redis container via Kubernetes and get the following warning:WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add i...
Disable Transparent Huge Pages from Kubernetes
Add one of thedelegatedorcachedoptions to the volume mounting your app directory. I've experienced significant performance increases using cached in particular:volumes: - ~/.composer-docker/cache:/root/.composer/cache:delegated - ./:/usr/src/app:cached
I have a signifiant delay and high cpu usage when running my vue.js app on docker instance.This is my docker setupdocker-compose.ymlversion: '2' services: app: build: context: ./ dockerfile: docker/app.docker working_dir: /usr/src/app volumes: - ~/.composer-docker/cache:/root/.composer/ca...
Vue.js app on a docker container with hot reload
I changed my dockerfile to have the following COPY statement:COPY out ./That then made the entrypoint to work because it was then able to find out myApp.dll. I think the message could be improved here, but that's me assuming that's what happened
I'm trying to run an .NET Core app on my mac. I'm using VS Core and upgraded the project to .NET 1.1. Everything works fine when I run it through VSCode however when I get to run it using Docker it fails.I do the following steps:dotnet publish -c Release -o out docker build -t myApp .The Dockerfile looks like this:FROM...
Run dotnet 1.1 using docker
The temporary solution is set the ttyerasecommand to whatever your backspace key sends in the terminal, when connected via ssh.stty erase ^HThe^Hsequence above is not the literal text but a control character entered by pressingctrl-vand thenbackspace.You can add this command to your.bashrcfile on the docker VM to have ...
In Windows 10, when I launch MS PowerShell to ssh through a container in Kitematic at windows, I've noticed that I can't backspace or delete, instead I get ^H for backspace instead of actually delete previous character.Do I miss something?
How to backspace or delete?
April 2023 UpdateDocker Desktop 4.18.0has been released which resolves this issue.Original answerThis seems to be aknown issue with Docker Desktop 4.17.1.Older versions can be found here:https://docs.docker.com/desktop/release-notes/
I used to use docker desktop with wsl2 integration and there was no problem running containers with gpu support.However, after a recent update to docker desktop v4.17.1 ( march 2023 ), any containers that I run specifically using the --gpus all tag on wsl hangs forever without any response. The same containers run with...
Running docker desktop containers with --gpus tag hangs without any response in wsl
UPDATE:You can now delete individual container images straight from the UI.Go to theContainer Registry page.You should see a list of container images. Click the one you want to delete.Select one or more tags, and click the delete button.As of Nov 2015:There is no way to currently delete a single container image from th...
I have pushed container images usinggcloud docker pushto the Google Container Registry. Two questions:How do I cleanly remove a pushed container image from the registry? (I know I can remove a tag to an image and make it not accessible anymore.)There are a bunch of Docker layers that an image brings with it. I want to ...
How can I cleanly remove a container image from the Google Container Registry?
You haven't explained why you want to see your container running after your script has exited, or whether or not youexpectyour script to exit.A docker container exits as soon as the container'sCMDexits. If you want your container to continue running, you will need a process that will keep running. One option is simpl...
I am trying to run a shell script in my docker container. The problem is that the shell script spawns another process and it should continue to run unless another shutdown script is used to terminate the processes that are spawned by the startup script.When I run the below command,docker run image:tag /bin/sh /root/my_...
docker run a shell script in the background without exiting the container
If you use the a redhat clone with the rpms from centos extras, they have a parameter to do that:--block-registry hostnameThis is a RedHat extension (seehere) which I don't think was accepted upstream (considering13450)
When I mistype things it tries to search in the central registry. How to disable it completely?Is there an option to clear that URL?
Docker: disable pulling from remote registry
CHOKIDAR_USEPOLLINGwill no longer work inreact-scripts^5, as Webpack started using its own filesystem watcher (Watchpack) as a replacement forChokidar, try:environment: - WATCHPACK_POLLING=true
I'm creating a React app with docker in WSL2 and create-react-app and everything seems to be working fine except the app is not updating with changes in the code. I mean, when I make a change in the code, the browser should update the changes automatically, but it doesn't and I have to restart the container to see them...
Docker with create react app is not updating changes
This turned out to be easy, and I did it through editing the csproj file: ChangedWindowstoLinuxand reload.I am still not sure where you would do this from Visual Studio (if it possible).
I have a .NET Core Web Application project where I chose the incorrect OS under the "Enable Docker Support" checkbox:How do I change this for an existing project? And to be clear, I want to target linux, not "Switch to Windows Containers..." in docker.
How do you change Docker OS Support for a .Net Core Web Application Project?
By “the file already exists”, do you mean that the file is on your host at/prometheus-data/prometheus.yml? If so, then you need to bind mount it into your container for it to be accessible to Prometheus.sudo docker run -p 9090:9090 -v /prometheus-data/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheusIt's co...
I am trying to load prometheus with docker using the following custom conf file:danilo@machine:/prometheus-data/prometheus.yml:global: scrape_interval: 15s # By default, scrape targets every 15 seconds. # Attach these labels to any time series or alerts when communicating with # external systems (federation,...
Can't load prometheus.yml config file with docker (prom/prometheus)
I had to grant the root user at the Django container permissions to access the DB:GRANT ALL PRIVILEGES ON *.* TO 'root'@'172.17.0.3' IDENTIFIED BY 'password' WITH GRANT OPTION; SET PASSWORD FOR root@'172.17.0.3' = PASSWORD('root'); FLUSH PRIVILEGES;Where172.17.0.3is the IP of the container with the app.MYSQL_ROOT_HOSTi...
When I try to connect from a docker container running my Django app to a container running MySQL, I get the following error:django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on '172.17.0.2' (111)")Here's how I'm running the MySQL container:$ docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -e M...
Cannot connect to MySQL docker container from container with Django app
Amazon has fixed this problem in version of the Elastic Beanstalk AL2 platformsreleased on 04-AUG-2020.It has been fixed so that log task customization on AL2-based platforms now works the way it has always worked (i.e. on the prevision generation AL2018 platforms) and you can therefore follow theofficial documentation...
I'm wondering how to dolog task customizationin the new Elastic Beanstalk platform (the one based on Amazon Linux 2). Specifically, I'm comparing:Old: Single-container Docker running on 64bit Amazon Linux/2.14.3New: Single-container Docker running on 64bit Amazon Linux 2/3.0.0(My question actually has nothing to do wit...
Elastic Beanstalk: log task customization on Amazon Linux 2 platforms
I had the same issue and found the solution to this. You will need to change the default listening hostname. By default, the app will listen to the localhost, ignoring any incoming requests from outside the container. Change your code inprogram.csto listen for all incoming calls:public class Program { public static...
I've created a app in asp.net core and create a dockerfile to generate a local image and run it.FROM microsoft/dotnet:latest COPY . /app WORKDIR /app RUN ["dotnet", "restore"] RUN ["dotnet", "build"] EXPOSE 5000/tcp ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]Then, I've builded my image wi...
Cannot acces Asp.Net Core on local Docker Container
This answer assumes that by "... spring-boot application to use buildpacks" you mean the use of thespring-boot:build-imagemaven goal.The issue lays with the default builder (gcr.io/paketo-buildpacks/builder:base) used by the maven plugin. Builder is responsible for configuring the OS image, and the "base" builder doesn...
I updated my spring-boot application to use buildpacks to create my docker-image instead of a dockerfile. I also use Apache POI in my application and since that update I get an error when generating an xlsx file. After some digging, I think it happens because thefontconfigand/orttf-dejavupackages are missing. But how d...
How to add extra linux dependencies into a spring-boot buildpack image?
You are starting the app for some reason (usingdocker run) you might don't need. Thedpltool is intended to be used inside a codebase, rather than for image deployment. As you saidbuild_image: image: docker:latest services: - docker:dind stage: package script: - docker login -u gitlab-ci-token -p $CI_BUILD...
I got project repository hosted on gitlab. I am using gitlab-ci to build docker container from my project. What I would like to achieve is deploying that container to heroku.I was trying to follow solution from this question:How to build, test and deploy using Jhipster, Docker, Gitlab and HerokuHere is how my.gitlab-ci...
Deploy docker container from external registry to Heroku
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
74

Models trained or fine-tuned on ahmedgongi/Devops_LLM