bit-docker
bit-docker copied to clipboard
Readme is confusing an not complete
The readme for "Getting Started" doesn't seem to be correct.
-
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-dockeror
docker build . -t bit docker run --rm --name bit -d -P --volume ~/.ssh/id_rsa.pub:/tmp/id_rsa.pub bit -
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:
- What is the difference between
teambitandbitcliin Docker Hub?- https://hub.docker.com/r/bitcli/bit-docker
- https://hub.docker.com/r/bitteam/bit-docker
- How do you setup multiple scopes?
- How do you setup your own Package registry?
Some more suggestions:
- 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 - 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
Thanks @smoakey and @sLemaitre If you don't mind creating PRs with those suggestions I would gladly review them. Thanks.
Hello I follow this thread and tried some suggestions but without any success. I got this error:
Any ideas?