![]() NOTE: The command sudo apt-get -y upgrade may be required in some cases if Podman cannot. How can I execute my docker-compose.yml file without any issues and start my containers. Podman on Mac and Windows also listens for Docker API clients. Asking for help, clarification, or responding to other answers. ![]() docker-compose up - I am executing this command right in the folder where docker-compose.yml file is presentĪnd I get the below error, sudo. Thanks for contributing an answer to Stack Overflow Please be sure to answer the question.Provide details and share your research But avoid. Do not know why, I am not able to find the man command on bash. I am on a windows 7 box running Docker via docker-machine. So when I finally try to execute my docker-compose.yml file, I get the below error sudo. Am getting started with Docker and just pulled up a basic ubuntu image. Set the PATH on the server in /.ssh/environment (needs to be enabled by PermitUserEnvironment yes in sshdconfig). You could try to place symlinks to PATH mentioned there. In addition, I made the files under both paths executable by using "chmod +x" command under respective folders. sudo ln -s /snap/bin/docker /usr/bin/docker You could also check what your path variable shows using the same command, but instead of ls -l use echo PATH command. #DOCKER BASH SUDO COMMAND NOT FOUND INSTALL#docker exec -it 8cd4cb427637 /bin/bash apt-get update apt-get install docker. docker run -v /var/run/docker.sock:/var/run/docker.sock /tail -f /dev/null I also had to ssh to the container and installed docker as well. If you really need to change sudo privs in a container, you only need to COPY at container build time a sudoers file that you have prepared outside the container. So, the below command find /usr/bin/ -name "docker-compose" I has this issue fixed by running the following command by sharing host machine's docker.sock to container. at 8:56 visudo is meant to interactively edit the sudoers file. I was referring the STACK OVERFLOW posts and was able to find something regarding the PATH variable, so I have also placed my docker-compose in /usr/bin/ path as well. ![]() # returns docker-compose version 1.24.0, build 0aa59064 ![]() I have my docker-compose installed and please find below the details which docker-compose I would like to run a docker-compose file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |