Closed N1CK145 closed 2 years ago
I haven't tested the image on a Pi.. planned to do it soon.. a fix should be available soon..
I haven't tested the image on a Pi.. planned to do it soon.. a fix should be available soon..
I've found a soloution. If I ran the container in privileged mode, it run's. It crashes because this line:
echo "Installing"
sleep 2 <- This little guy here crashes everything
cp /download/earnapp /usr/bin/earnapp
...
app_1 | Installing
app_1 | sleep: cannot read realtime clock: Operation not permitted
...
...
lite:
image: fazalfarhan01/earnapp:lite
privileged: true
volumes:
- ./etc:/etc/earnapp
environment:
EARNAPP_UUID: sdk-node-BLA_BLA_BLA
Is it possible to grant rights to the clock? Or to create an "Virtual" clock? Sorry, I am very new to docker :D
I found an explanation so as to why it happens.
The issue with “No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes” or “nanosleep(100ms) failed. Operation not permitted” (wanted to place those explicit messages in for the search later :slight_smile: ) seems to only occur on recent Raspbian 32-bit installations running Docker.
It seems that this issue report 7 discusses the need for libseccomp2 library to be updated to address this issue. This solved the problem for me on a Raspbian 32-bit install:
# Install a few prerequisite packages to be able to do the build sudo apt install build-essential git gperf # Download the libseccomp2 release package and unpack wget https://github.com/seccomp/libseccomp/releases/download/v2.5.1/libseccomp-2.5.1.tar.gz tar zvxf libseccomp-2.5.1.tar.gz cd libseccomp-2.5.1 # Build and install ./configure && make sudo make install # Preserve the original libraries from the .deb package from the base install mkdir ~/old-libs sudo mv /usr/lib/arm-linux-gnuabihf/libseccomp.so.2* ~/old-libs/ # Remove the library cache and rebuild sudo rm /etc/ld.so.cache sudo ldconfig
Setup
Docker-Logs
device information