Dockerfile sudo command not found9/24/2023 ![]() RUN apt -y install libgstreamer-plugins-base1.0-dev:i386 libkrb5-dev:i386 libopenal-dev:i386 libvulkan-dev:i386 libldap2-dev:i386 libcapi20-dev:i386 RUN apt -y install libpulse-dev:i386 libgstreamer1.0-dev:i386 libudev-dev:i386 libsdl2-dev:i386 libcups2-dev:i386 libv4l-dev:i386 libfontconfig1-dev:i386 RUN apt -y install libosmesa6-dev:i386 ocl-icd-opencl-dev:i386 libpcap0.8-dev:i386 libdbus-1-dev:i386 libgnutls28-dev:i386 libsane-dev:i386 libgphoto2-dev:i386 RUN apt -y install libxpresent-dev libxpresent-dev:i386 libxi-dev:i386 libxcursor-dev:i386 libxxf86vm-dev:i386 libxinerama-dev:i386 libxcomposite-dev:i386 RUN apt -y install libusb-1.0-0-dev libusb-1.0-0-dev:i386 libgcrypt20-dev libx11-dev libx11-dev:i386 libfreetype-dev libfreetype-dev:i386 samba-dev RUN sed -i 's/# deb-src/deb-src/g' /etc/apt/sources.list RUN update-alternatives -set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix RUN update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-11 90 & update-alternatives -install /usr/bin/g++ g++ /usr/bin/g++-11 90 RUN apt -y install build-essential mingw-w64 gcc-11-multilib g++-11-multilib nano sudo vulkan-sdk RUN wget -qO /etc/apt//lunarg-vulkan-1.3.204-focal.list RUN add-apt-repository -y ppa:cybermax-dexter/mingw-w64-backport RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test RUN apt -y install software-properties-common wget RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime & echo $TZ > /etc/timezone ![]() Here is my Dockerfile: # syntax=docker/dockerfile:1 All is good running the image, however when I try to execute a shell script by doing the following: docker exec ubuntu /path/to/script.sh, I receive the "command not found" error. I've built my image successfully, and run it by trying the following two ways: docker run -it ubuntu bash and docker run -it ubuntu. I am trying to run docker commands from inside my container, but I always get the response "bash: docker: command not found". ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |