Merge "Gather container logs in check pipeline"
This commit is contained in:
commit
a0cb765d73
@ -10,6 +10,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
docker_config_path: "/etc/docker"
|
||||
|
||||
docker_config_log_driver: "journald"
|
||||
docker_config_log_opts: {}
|
||||
|
||||
docker_config: |
|
||||
{
|
||||
"log-driver": "{{ docker_config_log_driver }}",
|
||||
"log-opts": {{ docker_config_log_opts | to_json }}
|
||||
}
|
||||
|
||||
proxy:
|
||||
enabled: false
|
||||
http:
|
||||
|
@ -62,6 +62,19 @@
|
||||
when: proxy.enabled|bool == true
|
||||
become: true
|
||||
|
||||
- name: Create docker directory
|
||||
file:
|
||||
path: "{{ docker_config_path }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
become: true
|
||||
|
||||
- name: Save docker daemon configuration
|
||||
copy:
|
||||
content: "{{ docker_config | to_nice_json }}"
|
||||
dest: "{{ docker_config_path }}/daemon.json"
|
||||
become: true
|
||||
|
||||
- name: Start docker
|
||||
become: true
|
||||
systemd:
|
||||
|
Loading…
Reference in New Issue
Block a user