Docker run出現runtime/cgo: pthread_create failed: Operation not permitted解決方法
runtime/cgo: pthread_create failed: Operation not permitted
💚解決方法
docker run --privileged
成功!!!
參考資料:
https://blog.52nyg.com/2024/02/2024
Docker run出現runtime/cgo: pthread_create failed: Operation not permitted解決方法
runtime/cgo: pthread_create failed: Operation not permitted
docker run --privileged
參考資料:
https://blog.52nyg.com/2024/02/2024
關於Docker在ubuntu上發生的恐怖故事解決方法
這是一個關於刪除Docker再重新安裝的故事~
(我的images container都沒有備份,Docker壞掉後,我氣到哭,昨天心態整個崩潰...
睡覺的時候氣到手會不自主的搥床,真的很難過...)
參考文獻:
安裝 docker
https://cloud.tencent.com/developer/article/1350956
解除安裝 docker
https://bbs.mnya.tw/d/8343-ubuntu-wan-zheng-jie-chu-an-zhuang-docker-jiao-xue
ubuntu@ubuntu:~/scrapy$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
ubuntu@ubuntu:~/trans_project/flask$ dpkg -l | grep -i docker
ubuntu@ubuntu:~/trans_project/flask$ sudo apt-get purge docker-ce
bash: /usr/bin/docker: 沒有此一檔案或目錄
ubuntu@ubuntu:~/scrapy$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
[sudo] password for ubuntu:
OK
ubuntu@ubuntu:~/scrapy$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
ubuntu@ubuntu:~/scrapy$ sudo apt-get install -y docker-ce
ubuntu@ubuntu:~/scrapy$ sudo systemctl status docker
ubuntu@ubuntu:~/scrapy$ docker --version
ubuntu@ubuntu:~/scrapy$ docker images
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/json: dial unix /var/run/docker.sock: connect: permission denied
ubuntu@ubuntu:~/scrapy$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json: dial unix /var/run/docker.sock: connect: permission denied
ubuntu@ubuntu:~/scrapy$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ubuntu:~/scrapy$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
崴少的部落格原本是建在Yahoo部落格上,
但是後來yahoo把部落格跟無名小站都關閉了,因次我的文章都被移至Xuite了.
詳情可以參考這篇 >> 大公告::衝天跑文章搬移公告
也就是說我以前的衝天跑文章和圖片都在Xuite隨意窩裡面,
當我2014年把文章搬移到blogger時,
我沒有把圖片特別備份在blogger,而是直接把在Xuite隨意窩圖片的url複製到blogger,
因此當Xuite隨意窩倒閉後,崴少的衝天跑圖片就都掛了😓😓😓
一切都是因為崴少沒有備份,
不過還好我以前有在巴哈的衝天跑版發過文,
因此還是有些圖片留著~
我以前甚至還跑去韓跑玩過xD 註冊超麻煩,而且還會被鎖IP,
真佩服以前的自己怎麼這麼有熱情~
(剛好在韓版出新角色忍者姊妹的時候過去玩的!!)
還有換到1000CASH
I was having the same issue I solved it by executing a shell in the docker container using this command docker exec -it imagebase bash
then issuing kill 1
command.
docker exec -it flask-app-cont /bin/bash
kill 1
進入你的container中,輸入kill 1
就可以把容器停掉了。
參考自:
https://stackoverflow.com/questions/51729836/error-response-from-daemon-cannot-stop-container-signaling-init-process-cause
當執行selenium遇見以下錯誤時~
(session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
1. 有可能你的chromedriver版本不對
可以去以下網址 或 自行去其他網址找尋相對應的chromedriver
https://getwebdriver.com/chromedriver#stable
2.權限全打開 就可以解決了~~
我是參考這篇才找到解法的qq
https://ithelp.ithome.com.tw/m/articles/10342034