Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting permission denied in heroku container login

I was trying to deploy my flask backend in heroku with docker. But when I run the command

heroku container:login

Getting those error

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.40/version: dial unix /var/run/docker.sock: connect: permission denied ▸ Login failed with: 1

My heroku.yml file in the top level directory is

setup:
  addons:
    - plan: heroku-postgresql
      as: DATABASE
build:
  docker:
    web: mymeds/Dockerfile
release:
  image: web
  command:
    - ./release-tasks.sh
run:
  web: python manage.py run
like image 465
Shahrear Bin Amin Avatar asked Nov 15 '25 13:11

Shahrear Bin Amin


1 Answers

try this, it work for me

$ sudo heroku login && sudo heroku container:login

like image 69
mike Avatar answered Nov 18 '25 16:11

mike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!