11/7/2023 0 Comments Run docker compose without sudo![]() '/var/run/docker.sock:/etc/docker.sock:ro' If this could help others, to solve traefik permissions problem, here is my configuration: traefik:Ĭommand: -api -docker -docker.endpoint=unix:///etc/docker.sock I change my issue to SOLVED, but I still have a problem with sharing /var/run/docker.sock for traefik, but I’ll try to find another solution for this. I’ve finally fixed it by using “named volumes” and upgrading my docker-compose version in the. I known we could rely on kubernetes / podman, but this is not the case on my office currently, so I need to found a solution if I want to keep Silverblue on my computer Load_policy: Can’t load policy: Permission deniedĪnd I can’t start the service docker, I suppose there is no systemctl support inside toolbox. SELinux: Could not load policy file /etc/selinux/targeted/policy/policy.31: Permission denied So, I’ve tried to install docker inside toolbox (DinD), but on install I have some SELinux errors: 1 root docker 0 24 mai 23:54 /var/run/docker.sock 1 root root 4 25 mai 00:16 /var/run/docker.pid Traefik_1 | time=“” level=error msg=“Failed to retrieve information of the docker client and server host: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get dial unix /var/run/docker.sock: connect: permission denied” $ ls -la /var/run/docker.* Mysql_crm_1 | chown: cannot read directory ‘/var/lib/mysql/’: Permission deniedĪnd even Traefik can’t read correctly /var/run/docker.sock : Php_1 | ERROR: failed to open configuration file ‘/usr/local/etc/php-fpm.d/nf’: Permission denied (13) When I start « sudo docker-compose up », all my containers that requires mounts / write access return “permission denied”, example: I’ve tried to add my user in the docker group, but there is a bug, so I can’t do a simple “docker ps” command without root priviledges… To install docker & docker-compose, I’ve used: « sudo rpm-ostree install moby-engine docker-compose » I also need to use docker and not podman because we use Traefik that read the file /var/run/docker.sock for configuration. Well and not just down the containers.For professional reasons, I need to have docker-compose and docker. To solve the problem, you can prune the volume as The command "docker-compose down" does not remove the Observe the error in subsequent runs that means these mounted volumesĪre left behind. ![]() Storing sawtooth keys in order to share between the containers. The root cause is the stale volume mounted, these are mounted for Sawtooth-default-poet.yaml start the network successfully on subsequent There are no Docker images for the nightly build. You are following instructions for the unreleased Sawtooth nightlyīuild. `ERROR: manifest for hyperledger/sawtooth-validator:1.2 not found` It is best to set so all the configurationĪnd data is under one root directory. If you do not down the container or reboot the Docker host, theįor a list of directories used by Sawtooth, see For a Sawtooth-specificĪlso see the Docker storage documentation at You make a directory for your volume and add How do I persist data on Docker containers? Virtual machine instance on a Windows 10 host. For example, I run Docker with Sawtooth containers on a VirtualBox Can Docker run inside a virtual machine? Kubernetes requires VirtualBox or some other virtual machine software.ĭocumentation on using Kubernetes with Minikube for Sawtooth on Linux or I get `You cannot remove a runningĬontainer` error removing docker containersīefore running docker rm $(docker ps -aq), first stop the runningĬontainers with sudo docker stop $(docker ps -q) How do I run Sawtooth with Kubernetes? Otherwise, you need to modify the source if the validator port is (for example, intkey-tp-python -v tcp://localhost:4040 ). Tcp://localhost:4040 The port might be a command line option for the If the port is mapped to 4004 (that is, not mapped to 4040), use Then connect your transaction processor to port tcp://localhost:4040
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |