How to prepare VM linux guest for using docker technology

Lets assume that we have installed like linux guest in VirtualBox Fedora distribution with Fedora Server 29.

  • Disable firewall
# sudo systemctl disable firewalld.service
# sudo systemctl stop firewalld.service
# sudo systemctl status firewalld.service
  • Install SSH server
# sudo dnf install -y openssh-server 
# sudo systemctl start sshd.service
# sudo systemctl enable sshd.service
  • Install Docker CE
# sudo dnf -y install dnf-plugins-core
# sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo
# sudo dnf install docker-ce
# sudo systemctl start docker
# sudo systemctl enable docker
  • Install Docker Compose
# sudo curl -L "https://github.com/docker/compose/releases/download/v1.25.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose

check last version with this link https://github.com/docker/compose/releases/latest and change version /v1.25.2/ accordingly.

Leave a Reply

Close Menu