Skip to main content

All Questions

Tagged with
16 votes
1 answer
45k views

"volumes 'type' is a required property" when running docker-compose

I am working through understanding how docker-compose.yaml works. I am trying to define a volume inside the compose file and to mount it at a mount point locally. I try to run a basic .yaml to mount ...
user7298979's user avatar
11 votes
2 answers
10k views

Mounting a directory from the host in boot2docker for Windows

I'm running docker 1.6 and boot2docker on a Windows 8.1 box. When I use the Boot2Docker Start shortcut, it takes me to a cygwin bash prompt where I can run docker commands natively. I'm having ...
Paul Oliver's user avatar
10 votes
5 answers
13k views

Docker exec doesn't load aliases

I have a bash alias loaded into a Docker container, in /etc/bash.bashrc. It functions as a shortcut to a commandline PHP script. This is convenient, since anyone can use that alias directly after one ...
David Spreekmeester's user avatar
9 votes
5 answers
7k views

Docker on Conemu

I am trying to make docker run on ConEmu by creating a task that open up Docker start.sh file usinggit bash. Since normally docker Terminal is pointing to "C:\Program Files\Git\bin\bash.exe" --login ...
Yar's user avatar
  • 265
8 votes
4 answers
29k views

Redirecting command output in docker

I want to do some simple logging for my server which is a small Flask app running in a Docker container. Here is the Dockerfile # Dockerfile FROM dreen/flask MAINTAINER dreen WORKDIR /srv # Get ...
Dreen's user avatar
  • 456
6 votes
2 answers
5k views

syntax error near unexpected token `(' writing bash function

I have testapi() { docker-compose -f /home/me/projects/api/docker-compose.yml run -e "API_BRANCH=${1-master}" --rm api_test ;} It causes error: $ src bash: /home/me/.bash_profile: line 56: syntax ...
codyc4321's user avatar
  • 410
6 votes
3 answers
12k views

Connection refused using host.docker.internal in docker container

I have a localhost:8000 open on the host machine. Specifically: $ php -S localhost:8000 PHP 7.1.19 Development Server started at Tue Jul 16 09:49:08 2019 Listening on http://localhost:8000 I can ...
Leon Ma's user avatar
  • 61
4 votes
3 answers
2k views

Script run with shebang does not resolve aliases, how to circumvent?

My main shell is zsh. I am using Docker for Windows and therefore docker inside WSL is not found, because the call should be to docker.exe. A quick hack I found online was to alias docker=docker.exe,...
tomsseisums's user avatar
4 votes
2 answers
4k views

With docker is there a way of determining what images rely on another image

With docker I can identify all named and tagged containers with docker images which lists them out. I can find out what other images a given image relies on using docker inspect --format '{{.RootFS....
RidiculousRichard's user avatar
3 votes
2 answers
1k views

Docker : how to launch a script on host when container stops?

I would like to know if it is possible to launch bash script on host when a docker container is stopped. For example I would like to stop a service when my container is stopped. I saw that catching ...
M.Brbr's user avatar
  • 149
3 votes
1 answer
1k views

Grafana Docker entrypoint script stops with "No such file or directory", but file is there

I'm trying to run Grafana on my Raspberry Pi 3 with docker. My docker-compose entry for it is pretty straightforward: version: '3.7' services: grafana: container_name: grafana image: ...
LimaKilo's user avatar
  • 141
3 votes
0 answers
278 views

Enter a Failed Docker Container with a Different Command

I have a fairly complicated docker container I'm attempting to build. As part of the build process I have I install Chef and have Chef install a number of cookbooks using Chef-Solo. I am having the ...
localhostv6's user avatar
2 votes
2 answers
5k views

Docker exec with dollar variable

I'm trying to run a command inside a Docker container with an environment variable, but I can't figure out the right syntax. I can see the variable is set correctly: $ docker exec -e FOO=bar ...
Elliott B's user avatar
  • 1,245
2 votes
2 answers
5k views

"ERROR: cannot copy to non-directory" when copying to WORKDIR?

I am simply trying to copy all the contents of the current directory into the docker image. Why is the WORKDIR not allowed as a destination? from ubuntu:20.04 WORKDIR . ENV TZ=America/Los_Angeles RUN ...
WestCoastProjects's user avatar
2 votes
1 answer
146 views

How to effect side effects in pipe

I'm running minikube as a local test environment and using docker multi-stage builds to build my containers. Minikube runs a version of docker that doesn't support multi-stage builds. Minikube ...
mkingston's user avatar
  • 392

15 30 50 per page