- Same network (djyurika calls DB by hostname)
docker build [dockerfile_dir] --tag [image_name]:[tag]
docker network create [network_name] --subnet [network]/30
docker run -d --name [container_name] --hostname [container_name] --restart unless-stopped -p [port]:3306 --network [network_name] [image_name:tag]
docker run -d --name [container_name] --hostname [container_name] --restart unless-stopped -p [port]:22 --network [network_name] -v [local_dir]:/home/djyurika [image_name:tag]
- Just start/stop container
- Start/stop command of docker container
- command
service djyurika start/stop
in shell of container