bit-docker icon indicating copy to clipboard operation
bit-docker copied to clipboard

Readme is confusing an not complete

Open smoakey opened this issue 5 years ago • 3 comments

The readme for "Getting Started" doesn't seem to be correct.

  1. Why build a local image if you are simply running another image. Should the instructions be:

    docker run --rm --name bit -d -P  --volume ~/.ssh/id_rsa.pub:/tmp/id_rsa.pub bitteam/bit-docker
    

    or

    docker build . -t bit
    docker run --rm --name bit -d -P  --volume ~/.ssh/id_rsa.pub:/tmp/id_rsa.pub bit
    
  2. Get port and set the remote

    docker port bit 22 
    // Outputs something like: 0.0.0.0:12345
    bit remote add ssh://root@<hostname>:<port_outputted_from_docker_port_command>:/tmp/scope -g
    

Im happy to open a PR to address the two items above if my assumptions are correct.


Other questions:

  1. What is the difference between teambit and bitcli in Docker Hub?
    • https://hub.docker.com/r/bitcli/bit-docker
    • https://hub.docker.com/r/bitteam/bit-docker
  2. How do you setup multiple scopes?
  3. How do you setup your own Package registry?

smoakey avatar Apr 03 '20 04:04 smoakey

Some more suggestions:

  1. the component inside the container should be placed in a mount outside the container. Ex. add a mount to the docker run: --mount source=bit-volume,target=/tmp/scope
  2. to expose the host over the network with a fixed port, the ssh port should be mapped on a fixed external port: Ex. use 443 on all containers on any host for this container --publish=443:22

sLemaitre avatar Jul 03 '20 10:07 sLemaitre

Thanks @smoakey and @sLemaitre If you don't mind creating PRs with those suggestions I would gladly review them. Thanks.

GiladShoham avatar Jul 29 '20 10:07 GiladShoham

Hello I follow this thread and tried some suggestions but without any success. I got this error:

image

Any ideas?

azlekov avatar Nov 22 '21 08:11 azlekov