Questions tagged [docker-container]

Docker Containers are the core of the docker platform in which programs and applications can be packaged and run in simulated environments.

Docker containers are the core of the docker program in which programs and applications can run in simulated environments.

These containers serve as a way to simulate code that would otherwise cause irreversible changes to a systems hardware. The difference between this and a virtual machine is that the docker container does not run code on the same level as the virtual machine on top of the fact that it is a lot more portable.

Docker containers can be loaded with any type of environment, even your currently used machine, or serve as simple tool boxes for your file sytems.

For more info, see the official documentation of a docker container.

1187 questions
17
votes
3 answers

How to pass local machine's SSH key to docker container?

I'm trying to build a docker image from Dockerfile and one of the steps that need to be taken is installing a dependency that is only available via private Gitlab repository. This means the container will need to have access to SSH keys to do the…
Michał Szydłowski
  • 3,261
  • 5
  • 33
  • 55
17
votes
7 answers

Couldn't connect to Docker daemon at http+docker://localhost with docker-compose

I have this React app that I want to run on an Apache HTTP Docker container. So I created a Dockerfile that works with sudo docker build and sudo docker run FROM httpd:2.4 COPY ./dist/ /usr/local/apache2/htdocs/ I created a…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120
17
votes
3 answers

How to use windows authentication with SQL server docker container

I have gone through all the examples I could find online for building docker container based applications. I would want to run two services running in two docker containers: A windows container running ASP.NET A windows container running SQL…
16
votes
3 answers

How to copy a file from host to container using docker-py (docker SDK)

I know, there is possible way how to copy file bidirectionally between host and docker container using docker cp and also it is possible to obtain file from running container using docker-py. But I am not able to figure out how (or if it is even…
s.t.e.a.l.t.h
  • 440
  • 2
  • 4
  • 14
15
votes
5 answers

How to remove all docker containers?

I use following commands to remove all docker containers: docker ps -q | xargs docker stop docker ps -aq --no-trunc -f status=exited | xargs docker rm But anyway I see containers after: $ docker ps -a CONTAINER ID IMAGE COMMAND…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
15
votes
1 answer

Is it possible to take thread dump of a java process in the container from the host?

My java process is running inside the container. Of course I can see that process on host machine and see its pid as well. If jdk is not installed on the cluster but on the host, can I run jstack from the host against the java process in the docker…
hobgoblin
  • 865
  • 1
  • 10
  • 18
15
votes
1 answer

How to setup Node environment variable in Dockerfile for running node.js application?

Can anyone suggest how can I setup NODE_ENV variable in dockerfile when running a node app.
djangogirl
  • 151
  • 1
  • 1
  • 7
14
votes
3 answers

Docker run -p ?/? (what are this two port numbers and what they represents )

I used command "docker run -p 8080/8080 --name my_local_image ...." and it failed saying Unable to find image '8080/8080:latest' locally 8080/8080 = what this two port represents exactly ?
Raj Kommawar
  • 195
  • 1
  • 1
  • 6
14
votes
4 answers

Missing log lines when writing to cloudwatch from ECS Docker containers

(Docker container on AWS-ECS exits before all the logs are printed to CloudWatch Logs) Why are some streams of a CloudWatch Logs Group incomplete (i.e., the Fargate Docker Container exits successfully but the logs stop being updated abruptly)?…
14
votes
2 answers

Docker container save logs on the host directory

I have a question similar to this one. When run my docker-compose.yml file, I automatically create a docker image and as specified in my dockerfile, I run certain apps. These apps produce some logs, but these logs are written inside the docker…
Tina J
  • 4,983
  • 13
  • 59
  • 125
14
votes
1 answer

Jenkins Pipeline and Docker - how to archive files from container

According to Jenkins Pipeline Docs, I should be able to use pipeline steps while working with Docker. However, "archiveArtifacts" does not appear to work: def container = docker.image("some_image") container.inside { sh 'date >…
Akom
  • 1,484
  • 19
  • 25
14
votes
4 answers

Nodemon inside docker container

I'm trying to use nodemon inside docker container: Dockerfile FROM node:carbon RUN npm install -g nodemon WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . EXPOSE 8080 CMD [ "nodemon" ] Build/Run command docker build -t tag/apt…
Jumpa
  • 4,319
  • 11
  • 52
  • 100
14
votes
1 answer

What are differences between Docker and Octopus Deploy

I have been using Octopus Deploy for sometime now just to deploy a web application onto an AWS EC2 instance. I am aware that Octopus Deploy is .NET specific and the learning curve is quite easy when compared to Docker. I understand one of the point…
floormind
  • 1,868
  • 5
  • 31
  • 85
13
votes
5 answers

adding .net core to docker container with Jenkins

I'm trying to create a dockerfile that will build an image with .net core 2.0 and Jenkins. I'm kind of new to Docker but want to include .net core 2.0 in my container with Jenkins so I don't have to worry about .net core being installed on the…
Michael C
  • 167
  • 1
  • 2
  • 9
13
votes
3 answers

Wordpress wp-config.php doesn't update in Dockers?

I am using Wordpress and docker container. The problem is that I updated the wp-config.php file but everything looks the same. I have something like this: CONTAINER ID IMAGE NAMES b2711d4b72a1 phpmyadmin/phpmyadmin …
jfk83
  • 740
  • 3
  • 15
  • 30