Public Repository

Last pushed: a year ago
Short Description
Ready for FMS with empty fms db; Apache, MySQL, PHP5.3 and mc installed
Full Description

To run container, type:
root@localmachine/#docker run -it --name lamp_najbolji -p 80:80 -p 3306:3306 -p 9000:9000 -v ~/IdeaProjects/fms:/opt/lampp/htdocs/fms/:rw lamp_najbolji /bin/bash

To see at which IP container is attached, type:
root@localmachine/# docker inspect experiment_net | grep IPAddress
(Alternatively, to setup container at specified IP new network must be created. Follow instructions at the bottom.)

################### IMPORT DB DUMP ############################

  1. Copy filename.dump to container's root:
    root@localmachine/# docker cp /path/to/dump/file/filename.dump container_name:/filename.dump

    1. Enter container's bash:
      root@localmachine/# docker exec -it container_name bash

    2. Import database:
      root@container:/# mysql -u root -proot fms < filename.dump;

############# SETUP FIXED CONTAINER IP ################################

  1. root@localmachine/# docker stop container_name
  2. root@localmachine/# gedit /etc/hosts
  3. add line 172.20.128.2 devfms.localhost.rs
  4. root@localmachine/# docker network create --subnet 172.20.0.0/16 --ip-range 172.20.240.0/20 network_name
  5. root@localmachine/# docker network connect --ip 172.20.128.2 network_name container_name
  6. root@localmachine/# docker start container_name
Docker Pull Command
Owner
bugsbunny35

Comments (0)