COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXXXX/java-common/ug-common/src: no such file or directory - docker-compose

I am having following error when copying the file. Why is that?
docker-compose up
COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXXX/java-common/ug-common/src: no such file or directory

Whatever file / directory you're trying to copy into your image doesn't exist in your build context. Set context to a directory that contains everything you need and dockerfile to the path of your dockerfile within it.
https://docs.docker.com/compose/compose-file#build

Related

How do we copy the file in S3 to a /usr/local/tomcat/webapps/ROOT/js directory?

I am looking to copy the file in S3 to the container which is created in my AWS ECS, How do we copy the file in S3 to a /usr/local/tomcat/webapps/ROOT/js directory? I am passing in in the CMD in task definition but it is not working.
I tried it via command and it is throwing "executable file not found in $PATH:unknown.

docker-compose cannot find the yaml file

I've placed a docker compose file project.yaml at the location /etc/project/project.yaml
the file and well as the project directory have the same file permission, i.e. -rxwrxxrwx
but when I run docker-compose
sudo docker-compose -f ./project.yaml up -d
if errors out with the following
Cannot find the file ./project.yaml
I have checked various times and it seems there is no permission issue. Can anyone tell why we have this problem and what would be the solution
Beside using the full path, as commented by quoc9x, double-check your current working directory when you call a command with a relative path ./project.yaml
If you are not in the right folder, that would explain the error message.

does ROBOCOPY have any command options to create source folder if not exist

For example, if source folder is c:\abc\file1 which doesnot exist..it should create the folder in source rather than throwing this error
ERROR 2 (0x00000002) Accessing Source Directory cc:\abc\file1
The system cannot find the file specified.

move only specific folders and subfolders using mv

I am trying to move specific folder and subfolders from a directory. In the below I am trying to move a folder BAM and its two subfolders and another folder Bedtools from the main directory to a destination but getting the errors below. Thank you :).
folder structure
8-21-2016 -- Top level is date
BAM -- parent directory
Coverage --child directory
Validation -- child directory
Bedtools -- parent directory
Test -- parent directory
ID -- parent directory
mv -u /home/cmccabe/Desktop/NGS/API/6-10-2016/bam/* bedtools/ /media/cmccabe/"My Book Western Digital"
mv: inter-device move failed: ‘/home/cmccabe/Desktop/NGS/API/6-10-2016/bam/coverage’ to ‘/media/cmccabe/My Book Western Digital/coverage’; unable to remove target: Is a directory
mv: cannot stat ‘bedtools/’: No such file or directory
Apparently bedtools does not exist in your local path. And about the other error message mv: inter-device move failed: ‘/home/cmccabe/Desktop/NGS/API/6-10-2016/bam/coverage’ to ‘/media/cmccabe/My Book Western Digital/coverage’; unable to remove target: Is a directory, probably that folder is not writable for your user. Move mv command will remove it from the device but probably you don't have the rights.
Check trying as root (with sudo) for the second problem. For the bedtools folder, please check your local path.

bash: mongodb/bin/mongod : No such file or directory

I'm trying to install and run some basic commands on mongodb from this tutorial (on page 4).
So far,
I've downloaded the a 32-bit zip file from the mongodb download page.
I've unzip the file in the following locations home/user1 then renamed it to mongodb
I've create a folder called data then another one inside called db
I've created a file name mongodb.config containing the path of the folder where I want to store my data, which is mongodb/data/db.
But when I run the command to start the server:
user1#user1-VirtualBox: ~$ mongodb/bin/mongod --dbpath ~mongodb/data/db
I'm getting the following error:
bash: mongodb/bin/mongod : No such file or directory
Am I missing something?
Missing a '/', it should be ~/mongodb/data/db, not '~mongodb/data/db'