git - can not push files to remote host -


i have started container (git service) using command...

# create local directory volume. $ mkdir -p /var/gogs  # use `docker run` first time. $ docker run --name=gogs -p 10022:22 -p 10080:3000 -v /var/gogs:/data gogs/gogs 

i able start git service , can check newly created repository browser...

http://52.201.82.96:10080/shantanuo/testme

but when follow these steps, error (permission denied):

touch readme.md git init git add readme.md git commit -m "first commit" git remote add origin http://localhost:3000/shantanuo/testme.git git push -u origin master 

is docker issue?

u should define volume datapoint, e.g.

mkdir -p /var/gogs volume["/var/gogs"] 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -