tagged [docker]

exited with code 0 docker

exited with code 0 docker I'm trying to launch container using docker-compose services.But unfortunetly, . Containers is build thanks to a repository which is from a .tar.gz archive. This archive is a...

Docker compose port mapping

Docker compose port mapping I have a docker-compose yml file as in below My goal is to forward nodejs-127.0.0.1 port 6379 to the redis host.

4 Apr at 18:14

Docker Error bind: address already in use

Docker Error bind: address already in use When I run `docker-compose up` in my Docker project it fails with the following message: > Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: addre...

How can I use environment variables in docker-compose?

How can I use environment variables in docker-compose? I would like to be able to use environment variables inside , with values passed in at the time of `docker-compose up`. This is the example. I am...

17 Feb at 01:30

Locating data volumes in Docker Desktop (Windows)

Locating data volumes in Docker Desktop (Windows) I'm trying to learn docker at the moment and I'm getting confused about where data volumes actually exist. I'm using . (Windows 10) In the docs they s...

How to search images from private 1.0 registry in docker?

How to search images from private 1.0 registry in docker? I made a private registry,curl xx.xx.xx.xx:5000 is ok. I push an image into docker private registry by doing: `docker push xx.xx.xx.xx:5000/ce...

15 Oct at 10:36

Docker - Name is already in use by container

Docker - Name is already in use by container Running the `docker` registry with below command always throws an error: ``` dev:tmp me$ docker run \ -d --name registry-v1 \ -e SETTINGS_FLAVOR=local ...

9 Aug at 18:49

Why is Docker installed but not Docker Compose?

Why is Docker installed but not Docker Compose? I have installed docker on CentOS 7 by running following commands, however when I try to run `docker-compose` (docker-compose.yml exists and valid) it g...

8 Dec at 02:19

ASP.NET Core docker build error

ASP.NET Core docker build error I'm new to ASP.NET Core and docker. I've created a simple ASP.NET Core 2.0 app and try to use docker with it on Windows. However, I get this error: `Your Docker server ...

How can I delete all local Docker images?

How can I delete all local Docker images? I recently started using Docker and never realized that I should use `docker-compose down` instead of `ctrl-c` or `docker-compose stop` to get rid of my exper...

31 Aug at 12:52

Pass argument to docker compose

Pass argument to docker compose In my docker compose file there is a dynamic field which I'd like to generate during the running. Actually it is a string template: And I want to configure this `PORT` ...

21 Apr at 13:42

docker-compose : Unsupported config option for services service: 'web'

docker-compose : Unsupported config option for services service: 'web' I am going through the [Getting Started with Docker Compose](https://docs.docker.com/compose/gettingstarted/) page. In Step 3, I ...

1 Oct at 00:40

Docker error: invalid reference format: repository name must be lowercase

Docker error: invalid reference format: repository name must be lowercase Ran into this Docker error with one of my projects: `invalid reference format: repository name must be lowercase` What are the...

30 Jan at 13:29

How to remove old and unused Docker images

How to remove old and unused Docker images When running Docker for a long time, there are a lot of images in system. How can I remove all unused Docker images at once safety to free up the storage? In...

2 Aug at 08:28

How to specify Memory & CPU limit in docker compose version 3

How to specify Memory & CPU limit in docker compose version 3 I am unable to specify CPU and memory limitation for services specified in version 3. With version 2 it works fine with `mem_limit` & `cpu...

7 Dec at 20:9

ERROR: In file './docker-compose.yml', service 'volumes' must be a mapping not an array

ERROR: In file './docker-compose.yml', service 'volumes' must be a mapping not an array My docker-compose.yml looks like the below and I am trying to follow the compose file from the docker registry d...

Interactive shell using Docker Compose

Interactive shell using Docker Compose Is there any way to start an interactive shell in a container using Docker Compose only? I've tried something like this, in my docker-compose.yml: When I start t...

From inside of a Docker container, how do I connect to the localhost of the machine?

From inside of a Docker container, how do I connect to the localhost of the machine? I have a Nginx running inside a docker container. I have a MySql running on the host system. I want to connect to t...

An error, "failed to solve with frontend dockerfile.v0"

An error, "failed to solve with frontend dockerfile.v0" I was trying to build my Docker image for my [Gatsby](https://www.gatsbyjs.com/) application. Whenever I run the command `docker build . -t gats...

How to access host port from docker container

How to access host port from docker container I have a docker container running jenkins. As part of the build process, I need to access a web server that is run locally on the host machine. Is there a...

14 Mar at 09:52

How can I use a local file on container?

How can I use a local file on container? I'm trying create a container to run a program. I'm using a pre configurate image and now I need run the program. However, it's a machine learning program and ...

Container is not running

Container is not running I tried to start a exited container like follows, 1. I listed down all available containers using docker ps -a. It listed the following: 2. I entered the following commands to...

17 Dec at 05:8

How to get a list of images on docker registry v2

How to get a list of images on docker registry v2 I'm using docker registry v1 and I'm interested in migrating to the newer version, v2. But I need some way to get a list of images present on registry...

27 Jun at 06:28

What does --net=host option in Docker command really do?

What does --net=host option in Docker command really do? I'm a little bit beginner to Docker. I couldn't find any clear description of what this option does in docker run command in deep and bit confu...

14 Apr at 07:3

Get Docker container id from container name

Get Docker container id from container name What is the command to get the Docker container from the container ?

13 Jan at 23:53