I just started learning Docker and trying to build a C++ project for Windows on Ubuntu. For that I use this project which almost works, but I have linking error, particularly it fails to link against libssh.
I run the build of my project using this command:
sudo docker run -v $PWD:/project/source -v $PWD/build_docker:/project/build my_qt_cross_win:qttools
where my_qt_cross_win:qttools
is the image that I built by git cloning original repo and added some missing libraries.
Since building it takes 2 hours, because it builds the whole system, and I just need to fix this minor linking issue, I would like to just add the proper libssh.a to the container that was instanced from my_qt_cross_win:qttools
image and build my project using that modified container. But it feels like I can use only images for that, because docker complains
Unable to find image 'musing_chebyshev:latest' locally
when I try to use container name or id instead of an image.
$ sudo docker container ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d207fd2d9dd8 my_qt_cross_win:qttools "/bin/sh -c 'qmake /…" 11 minutes ago Exited (2) 10 minutes ago musing_chebyshev
Is there any way I can use a modified container to build my project?