docker-airflow
docker-airflow copied to clipboard
add a text editor to it
If anyone needs to edit the conf files then they cant since there is no text editor in it. If someone tries to install it then it just says can't find it (apt-get install nano/vim/vi). Sudo didnt work either since I dont know the sudo password for these.
@MrAmbiG you can shell into the running container as root and apt-get install vim
.
$ docker exec -u root -it <airflow_container_id> bash
root@c2a18a5bcfea:/usr/local/airflow# apt-get update
root@c2a18a5bcfea:/usr/local/airflow# apt-get install vim
hi, when i try logging into the container as root and installing vim, i still get the following output :
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim
root@8e62282b605b:/usr/local/airflow# vim bash: vim: command not found
Is this issue resolved? I am still getting the issue "bash: vim: command not found"
Hi @aniljainbaba and @dbishnoi, first update the all the packages before executing this command. apt-get update apt-get install vim it worked for me.