Error within Vagrant knife test

Need one help. I have installed the Vagrant to test knife tool. vagrant status
Current machine states:

web1 running (virtualbox)
web2 running (virtualbox)
load-balancer running (virtualbox)

knife bootstrap localhost -p 2222 --connection-user vagrant -i .vagrant/machines/web1/virtualbox/private_key --sudo -N web1

Connecting to localhost using ssh
ERROR: Connection refused connecting to https://localhost/nodes/web1, retry 1/5
ERROR: Connection refused connecting to https://localhost/nodes/web1, retry 2/5
Check your knife configuration and network settings

davindersingh@davinders-mbp chef-training % vagrant ssh-config
Host web1
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/davindersingh/Documents/VSCODE/Chef/chef-training/.vagrant/machines/web1/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL

Found the issue. I was in different directory, I should be in directory where .chef folder available. Thanks