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
Post a Comment