All Questions
48
questions
0
votes
0
answers
67
views
docker compose down service with label
I'm trying to figure out how to programmatically compose down several services with a label.
Currently I'm just using docker container stop as such: docker container stop -t 60 $(docker ps -q -f "...
1
vote
0
answers
92
views
ls in Docker on Windows not showing one directory
I'm running Windows Server 2016 Datacenter version 1607 (build 14393.6614) with Docker Desktop Community Version 2.0.0.3 (31259).
I'm running an Ubuntu docker container in an interactive mode with my ...
2
votes
0
answers
56
views
Setting GitHub Actions Secrets on Docker container build/run command, but encountering a parsing issue
I'm in the early stages of building an automated pipeline. Still in the exploring phase. Right now, I'm struggling with setting the environment variables for the container I'm going to run my app.
The ...
0
votes
1
answer
450
views
docker login fails when done in .bashrc
At the end of my .bashrc file I have the following:
docker login -u AWS -p $(aws --region us-east-2 ecr get-login-password) 636602586062.dkr.ecr.us-east-2.amazonaws.com
However, whenever I open up a ...
0
votes
0
answers
2k
views
How to solve exec format error while running container in ECS?
Previously the question was related to https://stackoverflow.com/questions/77266768/yarn-command-not-found-after-successful-docker-build. It was fixed but my problem is related to using shell /bin/sh.
...
0
votes
0
answers
199
views
Integrate aws-cli via docker to the linux command line
In order not to have too many local installations, I decided to encapsulate the aws and kubectl cli's to a docker container and integrate it via this script, which is accessible on the path:
#!/bin/...
0
votes
0
answers
130
views
Is there a way to restrict a linux user in a Dockerfile to only be allowed to run some specific commands?
I'm creating a Dockerfile with Fedora as base image. I created an user and I want this user to only be allowed to run basic commands (touch, echo, git).
I already tried modifying the sudoers file and ...
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 ...
1
vote
1
answer
30
views
An image shows up again upon re-creation even after 'docker image ls' shows an empty result?
We have one existing docker image:
docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
setupython latest 3ce7423c6076 11 hours ago 1.49GB
Let's write a utility to ...
0
votes
1
answer
957
views
Why is a stopped docker container not showing in 'docker ps'?
I tried to remove a docker image but was told it is used by a stopped container:
docker image rm 7bf111746926
Error response from daemon: conflict: unable to delete 7bf111746926 (must be forced) - ...
0
votes
1
answer
3k
views
How can I create a symbolic link of a file in another directory with relative path?
THE PROBLEM
I'm developping an ai training app. The app uses docker and some folders are shared (mounted). Absolute paths inside and outside docker differ, and I need to create symlinks that work on ...
0
votes
0
answers
2k
views
null, message from server: Host '172.17.0.1' is not allowed to connect to this MySQL server
I am on Acer Aspire 5738 with 8GB ram, swap 16GB installed with Pop!_OS. I am using DBeaver as a RDBMS client and have created 3 containers and 3 separate volumes (to persist data) for 3 database ...
0
votes
1
answer
6k
views
Load ENV file from bash script
I have a bash script that has the following content :
#!/bin/bash
source ./django.dev.env
docker compose --env-file ./uvicorn.dev.env -f ./docker-compose.yaml
and a django.dev.env file with the ...
1
vote
1
answer
2k
views
How to make apache service run continuously from script file from docker?
I am trying to run apache2 service from .sh script from dockerfile. The 'sh' script contains 3 executable commands which is presented as below:
#!/bin/bash
export DISPLAY=:0.0
echo "pvw ...
0
votes
0
answers
854
views
How do I convert a linux iso into docker image/container
I am trying to convert a linux distro(RasPBX) into a docker container. So, far I was able to deploy the container, its runs without the desired outcome. Here is the docker file and dockerignore file:
...