웹 크롤링, 스크래핑
Running as root without --no-sandbox is not supported. 에러
수알치
2022. 7. 16. 10:23
Running as root without --no-sandbox is not supported. 에러
글, 수알치 오상문
docker에서 크롬 드라이버를 실행할 때 이런 에러가 나타날 수 있다.
Running as root without --no-sandbox is not supported.
또는
Creating shared memory in /dev/shm/.org.chromium.Chromium.JwBSnH failed: No such file or directory (2)
이런 경우에 크롬 드라이버 실행 시 다음처럼 옵션을 지정하여 처리해 보자.
options = webdriver.ChromeOptions()
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome(options=options)
반응형