I am new to docker and trying to run rootless containers with nvidia runtime. However, I am not able to run it due to the below error as shown in screenshot below
My config file looks like as shown below
I have created a configuration file (config.json) with data root parameter and have placed this file under "config" folder and have updated this path in the 'Taskfile.yml' file. But still for some reason, it throws error as no such file or directory. Can you please help me with this? Am new and just getting my hands dirty with this. The below code indicates the update that I made in Taskfile.yml file
dockerd:
cmds:
- ./boot/dockerd.sh --config-
file="/data/volume02/selva/usernetes/config/config.json"
I would expect to be able to run the docker server without any error.
Related
I can't find the file 'supervisor' in Hue folder. According to official documentation it should be in the folder $HUE_HOME/build/env/bin. I am doing my operation in Ubuntu server 22.04. My objective to send queries to Impala through Hue.
I run following command as it was written in http://cloudera.github.io/hue/latest/administrator/installation/starting/
build/env/bin/supervisor
then I got "No such file or directory" warning.
I also tried
build/env/bin/hue runserver
and I got the same "No such file or directory" warning because there are no such files there.
Those instructions are written relative to Hue's installation folder, or the parent folder of the build-process output. Your error is simply saying that the relative path you're trying to use doesn't exist... Without more context, the error isn't incorrect
For a more simpler installation, you can try running the HUE docker container.
I have installed the docker for Windows 10 home, After installation when I try to open the Docker Terminal the following error pops up.
open C:\Users\shani\.docker\machine\machines\default\config.json: The system cannot find the file specified. Looks like something went wrong in step ´Checking status on default´... Press any key to continue...
I cannot find config.json anywhere. I tried finding the online solution but in all of those solutions the docker runs and then while pulling some images, it creates this problem. I also tried t add the file with following content in it (Solution I found online)
{ }
But It does not work? What should I do here?
I'm fairly new to docker and development so I was hoping I could get some help here. I've seen this post but I don't quite understand the highlighted section and can't see how it applies to me. Basically, I get an error message:
ERROR: for webserver Cannot start service webserver: b'Mounts denied: \r\nThe
paths /etc/airflow and /etc/airflow\r\nare not shared from OS X and are not
known to Docker.\r\nYou can configure shared paths from Docker ->
Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-
mac/osxfs/#namespaces for more info.\r\n.'
This is my current file sharing setup in Docker. I tried adding /etc/airflow in the Docker for Mac file sharing preferences but I was unable to apply changes and restart because /etc is under /private. I've tried replacing /private with /etc/airflow but the problem persists. Any idea what I can do?
I hope you are having a great day!
I'm new to docker. I think my problem is related to docker's directory tree
My app writes to a file to /home/user directory and then after some time reads that file again.
I got this error from my app.
[error] a.a.OneForOneStrategy - /home/user/bkjw_eqvfohygvkaxoxc-small.jpg
java.nio.file.NoSuchFileException: /home/user/bkjw_eqvfohygvkaxoxc-small.jpg
My dockerized app is unable to create the file and read. I'm thinking that the Docker considers the directory /home/user/ as a absolute directory of host.
I thought that the container would write to /home/user directory within the container's directory tree.
So the question is :
How can I specify the path to write the file inside the containers directory tree?
Your understanding about the directory tree is correct. Application running inside a docker container would write to /home/user/ in the container's directory tree.
Your issue seems to be with permissions, your java application probably doesn't have the rights to write to /home/user/ within the container. Either you should change the ownership/rights of the directory you're wanting to write in, or a simple solution I did in such case was to create the directory I wanted to write in, within the java code.
like:
// Create volume directories explicitly so that they are created with correct owner
Files.createDirectories(Paths.get(dirPath));
You can set dirPath String to something like /home/user/mydir IF your requirement is not to write in /home/user/ specifically.
I'm creating some Windows Container images that I need but the source file I want to ADD are in a network share \\myserver\myshare\here.
I've tried in any possible way but I always get the message error The system cannot find the path specified.
Is it because I have not yet found the right way to set it or is it that it is just not possible?
From the Docker site:
Multiple resource may be specified but if they are files or directories then they must be relative to the source directory that is being built (the context of the build).
Is that why I can't accomplish what I need?
Full error message: GetFileAttributesEx \\myserver\myshare\here\: The system cannot find the path specified.
Whatever you ADD or COPY must be in the docker build context.
When you do this:
docker build .
That directory param (the . in the example) is the context that is copied and sent to the Docker daemon. Then the docker daemon use those files to COPY or ADD. It won't use any file that is not in that context.
That is the issue that you are experiencing. I'm not sure how you can solve it anything than copying the files from \\myserver to your build directory.
ADD is capable of download files by providing an URL (should investigate if it supports Windows' shares)