can not push files to remote host

I have started a container (git service) using this command…

# Create local directory for volume.
$ mkdir -p /var/gogs

# Use `docker run` for the first time.
$ docker run --name=gogs -p 10022:22 -p 10080:3000 -v /var/gogs:/data gogs/gogs

I am able to start the git service and can check the newly created repository from browser…

  • command not found when running in docker bash script
  • How to consist the containers in Docker?
  • Docker, referencing a differnet container. Call mysqldump using php command
  • Can docker overlay networks bind to a single specific parent network interface?
  • Docker. How to get bash\ssh inside runned container (run -d)?
  • How MongoDB works with Docker

    But when I follow these steps, I get an error (permission denied):

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

    Is it a docker issue?

  • Docker: ECS vs Beanstalk vs Docker Cloud
  • kali linux docker image build script failed - syntax error near unexpected token `;&' [closed]
  • How to reach the service running in docker container(overlay) externally from different hosts
  • docker-machine ls shows state timeout
  • Getting Unsupported protocol scheme error with docker in pycharm
  • Headless docker host with a headful container
  • 2 Solutions collect form web for “can not push files to remote host”

    u should define the volume datapoint,

    mkdir -p /var/gogs

    Since the docker port 3000 is linked to 10080 of the host machine, use this…

    git remote add origin
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.