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.

863 questions
13
votes
1 answer

Wordpress on Docker: Could not create directory on mounted volume

Here is are the original files in the Wordpress Docker container on path /var/www/html: $ docker exec 5b957c7b9c5ad054883694afbfb80d3c9df6707458d55011f471be0701f3890c ls -l total 192 -rw-r--r-- 1 www-data www-data 418 Sep 25 2013…
Peter G.
  • 6,748
  • 14
  • 67
  • 134
13
votes
3 answers

Docker Commit on a existing image

Docker commit creates a new image every time commit command is issued. Is it possible to issue commit on currently running container and the changes gets saved to the existing image((existing image here is the image from which the container was…
vijaygopal
  • 173
  • 1
  • 3
  • 8
13
votes
2 answers

'make' command not found in docker container

I have a docker image which is running docker host with ubuntu 14.04. In one of the containers, I am trying to run zookeeper and install librdkafka libraries(pre-requisite library) for kafka to connect to 3rd party software. I need the 'make'…
Omkar
  • 1,492
  • 5
  • 17
  • 27
13
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…
12
votes
1 answer

Docker Inside a Docker on Windows

I have seen docker inside docker docker container for Ubuntu/Linux. As per the replies in this thread, the following command works docker run -v /var/run/docker.sock:/run/docker.sock -v $(which docker):/bin/docker [your image Are there any similar…
panch
  • 185
  • 1
  • 9
12
votes
2 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
  • 371
  • 1
  • 3
  • 12
11
votes
4 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
  • 147
  • 1
  • 8
11
votes
4 answers

extend jenkins image to install maven

I'm using the jenkins/jenkins:lts image at the moment. It runs fine and does everything I want to expect one thing. I want it to run Maven goals in the build steps. The problem is that there is not maven installed in the jenkins container…
xetra11
  • 4,474
  • 6
  • 39
  • 98
11
votes
1 answer

How to configure a Docker container for acquiring DHCP IP/s from dhcp server running on ESX

My host is SLES12 VM running on an ESX server. VM Host has interfaces which acquire DHCP IPs from the DHCP server running on ESX. In my docker container (docker image: opensuse) I am running a NFS server and hence need external access. I want the…
Anupam
  • 111
  • 1
  • 1
  • 4
11
votes
2 answers

How to access "http://localhost" from a Docker container in Windows?

I have a set of containers running in Windows 10 with Docker, this is the output of docker-compose ps: > docker-compose ps Name Command State …
ReynierPM
  • 15,161
  • 39
  • 158
  • 314
11
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…
ife labolz
  • 1,320
  • 3
  • 25
  • 66
10
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)?…
10
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
  • 3,411
  • 8
  • 39
  • 93
10
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
  • 5,153
  • 10
  • 53
  • 97
10
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,022
  • 13
  • 22
1 2
3
57 58