Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker file error: (......no such file or directory #17

Open
RandyChen233 opened this issue Jan 1, 2023 · 1 comment
Open

Docker file error: (......no such file or directory #17

RandyChen233 opened this issue Jan 1, 2023 · 1 comment

Comments

@RandyChen233
Copy link

Hi,

I get the following error on the last step :

(ICON_lab) randychen@randychen-Delta-15-A5EFK:~/projects/build$ docker build . -t ros2204
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/randychen/projects/build/Dockerfile: no such file or directory

It seems like the docker file is not there. How should I get this docker file?

@RandyChen233 RandyChen233 changed the title Docker file error: (ICON_lab) randychen@randychen-Delta-15-A5EFK:~/projects/build$ docker build . -t ros2204 unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/randychen/projects/build/Dockerfile: no such file or directory Docker file error: (......no such file or directory Jan 1, 2023
@lucasw
Copy link
Owner

lucasw commented Jan 6, 2023

You need to run docker from a directory with a dockerfile, the root README.md is a little unclear about that, but for example to run the ubuntu_2204 build inside docker do this:

cd ros_from_src/ubuntu_2204
docker build . -t ros_debian_2204

Or instead of docker build . you could docker build ../../ros_from_src or similar with the right relative path to the Dockerfile.

(The other ros_from_src/Dockerfile builds everything from source but I haven't been spending any time with that because I prefer the approach that uses the debian base packages, there may need to be updates to making building completely from source work)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants