Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. db_1 | Initializing database
  2. db_1 | mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (Errcode: 13 - Permission denied)
  3. db_1 | 2016-05-21T22:55:38.877522Z 0 [ERROR] --initialize specified but the data directory exists and is not writable. Aborting.
  4. db_1 | 2016-05-21T22:55:38.877799Z 0 [ERROR] Aborting
  5.  
  6. version: '2' services: db:
  7. privileged: true
  8. image: mysql
  9. volumes:
  10. - "./.data/db:/var/lib/mysql"
  11. restart: always
  12. environment:
  13. MYSQL_ROOT_PASSWORD: wordpress
  14. MYSQL_DATABASE: wordpress
  15. MYSQL_USER: wordpress
  16. MYSQL_PASSWORD: wordpress
  17.  
  18. # -*- mode: ruby -*-
  19. # vi: set ft=ruby :
  20.  
  21. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  22. # configures the configuration version (we support older styles for
  23. # backwards compatibility). Please don't change it unless you know what
  24. # you're doing.
  25. Vagrant.configure(2) do |config|
  26. # The most common configuration options are documented and commented below.
  27. # For a complete reference, please see the online documentation at
  28. # https://docs.vagrantup.com.
  29.  
  30. # Every Vagrant development environment requires a box. You can search for
  31. # boxes at https://atlas.hashicorp.com/search.
  32. config.vm.box = "ubuntu/trusty64"
  33. # config.vm.box = "debian/jessie64"
  34.  
  35. # Disable automatic box update checking. If you disable this, then
  36. # boxes will only be checked for updates when the user runs
  37. # `vagrant box outdated`. This is not recommended.
  38. # config.vm.box_check_update = false
  39.  
  40. # Create a forwarded port mapping which allows access to a specific port
  41. # within the machine from a port on the host machine. In the example below,
  42. # accessing "localhost:8080" will access port 80 on the guest machine.
  43. # config.vm.network "forwarded_port", guest: 80, host: 8080
  44.  
  45. # Create a private network, which allows host-only access to the machine
  46. # using a specific IP.
  47. # config.vm.network "private_network", ip: "192.168.33.10"
  48.  
  49. # Create a public network, which generally matched to bridged network.
  50. # Bridged networks make the machine appear as another physical device on
  51. # your network.
  52. # config.vm.network "public_network"
  53.  
  54. # Share an additional folder to the guest VM. The first argument is
  55. # the path on the host to the actual folder. The second argument is
  56. # the path on the guest to mount the folder. And the optional third
  57. # argument is a set of non-required options.
  58. # config.vm.synced_folder "../data", "/vagrant_data"
  59.  
  60. # Provider-specific configuration so you can fine-tune various
  61. # backing providers for Vagrant. These expose provider-specific options.
  62. # Example for VirtualBox:
  63. #
  64. # config.vm.provider "virtualbox" do |vb|
  65. # # Display the VirtualBox GUI when booting the machine
  66. # vb.gui = true
  67. #
  68. # # Customize the amount of memory on the VM:
  69. # vb.memory = "1024"
  70. # end
  71. #
  72. # View the documentation for the provider you are using for more
  73. # information on available options.
  74.  
  75. # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
  76. # such as FTP and Heroku are also available. See the documentation at
  77. # https://docs.vagrantup.com/v2/push/atlas.html for more information.
  78. # config.push.define "atlas" do |push|
  79. # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
  80. # end
  81.  
  82. # Enable provisioning with a shell script. Additional provisioners such as
  83. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  84. # documentation for more information about their specific syntax and use.
  85. # config.vm.provision "shell", inline: <<-SHELL
  86. # sudo apt-get update
  87. # sudo apt-get install -y apache2
  88. # SHELL
  89.  
  90. #####################################################################
  91. # Custom Configuration
  92.  
  93. config.vm.define "dev" do |dev|
  94.  
  95. # if File.directory?("~/Dev")
  96. # dev.vm.synced_folder "~/Dev", "/vagrant/Dev"
  97. # end
  98. # custom: above does not work for symlinks
  99. dev.vm.synced_folder "~/Dev", "/home/vagrant/Dev"
  100. # dev.vm.synced_folder "~/Dev/docker", "/docker"
  101.  
  102. dev.vm.provider "virtualbox" do |vb|
  103. vb.gui = false
  104. vb.memory = "2048"
  105. end
  106.  
  107. dev.vm.provision "shell",
  108. run: "always",
  109. inline: <<-SHELL
  110. pushd /vagrant/conf
  111. chmod 755 setup.sh && ./setup.sh
  112. popd
  113. SHELL
  114.  
  115. dev.ssh.forward_x11 = true
  116.  
  117. # Install the caching plugin if you want to take advantage of the cache
  118. # $ vagrant plugin install vagrant-cachier
  119. if Vagrant.has_plugin?("vagrant-cachier")
  120. # Configure cached packages to be shared between instances of the same base box.
  121. # More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
  122. config.cache.scope = :machine
  123. end
  124. end
  125.  
  126. end
  127.  
  128. $ docker --version
  129. Docker version 1.12.0-rc2, build 906eacd, experimental
  130.  
  131. $ docker-compose --version
  132. docker-compose version 1.8.0-rc1, build 9bf6bc6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement