Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.76k stars 197 forks source link

Operation not permitted #40

Closed Reporter1 closed 2 years ago

Reporter1 commented 2 years ago

Hi

I'm trying to make / get a yml output for my container but im receiving the Operation not permitted error.

I'm using the docker container method, simply followed the instructions you wrote, pull the image and run the docker command and add the container id / name.

But im seeing the below? Any ideas?

BTW im still learing so bare with me.

Traceback (most recent call last): File "/usr/src/app/./autocompose.py", line 3, in import sys, argparse, pyaml, docker File "/usr/local/lib/python3.10/site-packages/docker-5.0.3-py3.10.egg/docker/init.py", line 2, in from .api import APIClient File "/usr/local/lib/python3.10/site-packages/docker-5.0.3-py3.10.egg/docker/api/init.py", line 2, in from .client import APIClient File "/usr/local/lib/python3.10/site-packages/docker-5.0.3-py3.10.egg/docker/api/client.py", line 6, in import requests File "/usr/local/lib/python3.10/site-packages/requests-2.28.1-py3.10.egg/requests/init.py", line 43, in import urllib3 File "/usr/local/lib/python3.10/site-packages/urllib3-1.26.9-py3.10.egg/urllib3/init.py", line 7, in import logging File "/usr/local/lib/python3.10/logging/init.py", line 57, in _startTime = time.time() PermissionError: [Errno 1] Operation not permitted

Reporter1 commented 2 years ago

All sorted now, need to update libseccomp2.

Found the solution here https://github.com/Red5d/docker-autocompose/issues/26

UPDATE: Steps to update library on raspberry pi 3:

find the latest version here http://ftp.debian.org/debian/pool/main/libs/libseccomp/?C=M;O=D as the below version in the command is no longer available, replace the latest in the command and run the below..

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb

sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb

https://community.home-assistant.io/t/migration-to-2021-7-fails-fatal-python-error-init-interp-main-cant-initialize-time/320648