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
-1
votes
1 answer

Is Docker Container a Small Linux Operating System?

I haven't really understood what is docker container, how if I like to develop my own container like docker container? Q: Is docker container a small Linux operating system that host another Linux operating system called imagine? I am trying to…
-1
votes
2 answers

I am trying to keep a container running using a docker compose file. I added tty: true and std_in: true but it still exits with code 0

Here is my docker compose file. version: '3' services: web: image: emarcs/nginx-git ports: - 8081:80 container_name: Avida working_dir: /usr/share/nginx/html command: bash -c "git clone…
-1
votes
1 answer

Docker container is not accessible via curl or browser

I used following command to create a nginx container. $ docker run -it -d --name test-nginx -p 8090:8091 nginx and it seems to be up and running fine $ docker ps CONTAINER ID IMAGE COMMAND CREATED …
-1
votes
1 answer

Mysql container password security

I have a couple of questions on password security in mysql container. I use mysql/mysql-server:8.0 image. The 1st question is Is using MYSQL_PASSWORD env var in mysql container based on the image above secure? I elaborate a bit more about this…
Steve
  • 41
  • 1
  • 7
-1
votes
1 answer

Unable to access JSON file through shell script inside docker container

I'm trying to populate data using REST endpoints of another container (i.e. my-blog-container) by creating a container (data-loader), for which I'm running a shell script dataloader.sh inside container (i.e. data-loader). In the shell script I'm…
-1
votes
1 answer

Converting subflows into modules in node-RED

i'm new to node-red and docker. For my internship i was asked to convert a subflow into a module (in order to be in the palette of every instance of node-RED created) So, i've started with a little example showing how to add custom node as a module…
-1
votes
1 answer

Copy container modified files into new volume

I'm new to Docker. I have a SQLite database inside a container which has been modified and i want to preserve the data for new containers. I've tried creating commiting my container into a new image, but it didn't seems to copy the edited file, plus…
emboole
  • 501
  • 6
  • 23
-1
votes
1 answer

Python docker container shuts down immediately after finishing running the app, even if specified to stay in -d -t

I have a dockerfile FROM python:3 WORKDIR /app ADD ./venv ./venv ADD ./data/file1.csv.gz ./data/file1.csv.gz ADD ./data/file2.csv.gz ./data/file2.csv.gz ADD ./requirements.txt ./venv/requirements.txt WORKDIR /app/venv RUN pip install…
Dasph
  • 420
  • 2
  • 15
-1
votes
1 answer

How to give file path from command line arguments and store the results in the same file path while using Docker?

I am creating a docker container in which I want to give file path from command line arguments and then do some process on the given input file. And after completing the process, output should be stored in the same file path folder. For example: I…
Ekanshu
  • 69
  • 1
  • 11
-1
votes
1 answer

Docker start a container with already created volume

How would I go about starting a container with a volume that's already created? I have a volume for example named 'data' and 'docker volume ls' will show this. Now I need to start a container by attaching this existing volume.
xelber
  • 4,197
  • 3
  • 25
  • 33
-1
votes
1 answer

Docker restore deleted images

Created an ubuntu docker image. (no commits, no backups) Decided to practice and delete. But only now I realized that I can't restore the rest :) Can restore as GIT, past images by name,ID ? docker run -it ubuntu ps -A docker ps -a docker rm…
-1
votes
1 answer

Error Response from daemon: Docker Container [id] is not running

Error Response from daemon: Docker Container [id] is not running. Hi Team, I want to run my docker container from the docker reload script but getting the following error:- Error response from daemon: Container b660899a0--- is not running Please…
-1
votes
1 answer

How to check the content of docker container whith status exited (1)

I have to mention that I am new to docker world. I have used image to create docker container for web application. When I run the application using the command: $ docker run --privileged --name img -d -e ROOT_PASS="root" -e PRODUCT_CMD="startapp" -v…
Ronald
  • 2,721
  • 8
  • 33
  • 44
-1
votes
1 answer

502 response when conecting to an endpoint running on a docker container from another docker container

I have two different services ( A and B) A is calling an api endpoint of B. A and B are running in two different docker containers inside my localhost. docker-compose.yml of A : has ports 80:80 and expose 80 docker-compose.yml of B : has ports…
etotientz
  • 373
  • 5
  • 18
-1
votes
1 answer

Created Docker Container process not getting listed

Created Docker container process is not showing using command docker ps --all I have created only one Dockerfile in a directory, and which is a single available file inside the directory. the Dockerfile contains following lines: # Use an existing…
ArifMustafa
  • 4,617
  • 5
  • 40
  • 48