![]() ![]() Both the commands will execute inside the Docker container.Īgain, let’s verify all the vim packages installed inside the container: $ docker exec -it centos bash -c "rpm -qa | grep vim"Īll the commands discussed in this section will work on Fedora Docker containers as well. Finally, we’ll install the vim package using yum install -y vim. The yum update command will update the packages to their latest version. We can install the complete vim package if required: $ docker exec -it centos bash -c "yum update -y & yum install -y vim" To launch a shell inside a Docker container with the build dependencies mounted at /src: docker run -it -v (pwd):/src zmap/builder. $ docker exec -it centos bash -c "rpm -qa | grep vim" sudo yum install cmake gmp-devel gengetopt libpcap-devel flex byacc json-c-devel libunistring-devel. Again, we’ll verify if the vim package is available inside the container using the command rpm -qa | grep vim. Now let’s launch a centos Docker container using its latest Docker image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |