Skip to content
Advertisement

Tag: docker

Why is my sed substitution with a & failing to execute?

I am trying to run following command on Linux Docker container but I am getting the following error: The file content I am running it for: I am doing it as suggested at – https://solveme.wordpress.com/2017/07/24/java-awt-awterror-assistive-technology-not-found-org-gnome-accessibility-atkwrapper-when-running-jasper-reports/ Can someone help me with it? Answer Just quote the command so & does not have an special meaning for Bash! What is exactly happening

Set docker image username at container creation time?

I have an OpenSuse 42.3 docker image that I’ve configured to run a code. The image has a single user(other than root) called “myuser” that I create during the initial Image generation via the Dockerfile. I have three script files that generate a container from the image based on what operating system a user is on. Question: Can the username

Can’t create Docker volume using absolute path on Linux

I’m getting the following error message when trying to run a Docker container with which I want to share some data via a directory (I added the emphasis): ##[error]/usr/bin/docker: Error response from daemon: create -v /opt/vsts/work/1/s/coverage: “-v /opt/vsts/work/1/s/coverage” includes invalid characters for a local volume name, only “[a-zA-Z0-9][a-zA-Z0-9_.-]” are allowed. If you intended to pass a host directory, use absolute

“usermod: UID ‘0’ already exists” why?

As part of my Docker image I have the following ENTRYPOINT script: The image compiles successfully. When I try to run the container by running the following command docker run -it temp bash I got the following output: Why my UID is 0? I can’t find where is my error here, any help is more than welcome. Update: Changing this

Advertisement