This Repo. provides an environment to solving algorithm problems for BEGINNERS.
- Python 3.6.10
- GCC 8.3.0
- Install virtualenv
pip install virtualenv
- Clone this repo.
git clone https://github.com/uplsh580/algo_env.git cd algo_env
- Create Virtenv
python -m venv .venv
- Activate virtenv
. .venv/bin/activate
- Install python packages
pip install -r requirement.txt
- Install Docker link
- Clone this repo.
git clone https://github.com/uplsh580/algo_env.git cd algo_env
- Execute
docker_set.sh
script to build docker image and run container./docker_setup.sh --run
- Check container is created.
You can find the
docker ps -a
algo
container has UP STATUS. - Run bash in
algo
container.The executed bash is the shell that ran on the algo container.docker exec -it algo /bin/bash
-
Q: How to exit from container?
A: Runexit
command in container shell. -
Q: When run
docker exec -it algo /bin/bash
command, I meet below message.> docker exec -it algo /bin/bash Error response from daemon: Container 3a6c980cfda39555c4ed954c72e7a4bbe166ff1b7acad2386d3fdf5aa4a81e28 is not running
A: This is a message that appears after the container is closed.
Please rundocker start algo
to start container
and execute againdocker exec -it algo /bin/bash
command.