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…

  • Stopping docker containers by image name, and don't error if no containers are running
  • RTMP Streaming does not work from Docker container
  • Docker engine swarm mode | Alternative of “extra_hosts” used in compose
  • Run Infinispan cluster with Server management console using Docker swarm
  • How can I disable internet access for docker containers
  • Using docker-compose in Dockerfile
  • http://52.201.82.96:10080/shantanuo/testme

    But when I follow these steps, I get an 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 it a docker issue?

  • Weblogic + Docker + Vagrant = Connection Issue
  • Docker can't start “Default” despite successful installation on OSX 10.8.5
  • /var/run/docker.sock unaccessible in container running on centos 7
  • getting python and react component based container to work
  • How to copy and rename a Docker container?
  • Channgel Creation Failed. GRPC timeout
  • 2 Solutions collect form web for “can not push files to remote host”

    u should define the volume datapoint,
    e.g.

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

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

    git remote add origin http://52.201.82.96:10080/shantanuo/testme.git
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.