Category: Docker Tips

Mac docker set up a shared folder can not use chmod change permissions

problem The first use of mac, the use of docker to build the development environment, mount settings shared time can be displayed normally, but found in the shared folder can not use chmod to change the permissions of the folder, resulting in the root can read and write, how to solve The Before used in […]

Is the image of the wrong image irreparable?

Docker build Sometimes successful, the successful creation of containers, start did not report the wrong, but ps can not see the container has been started, can not attach Why docker will have this strange question? At this point there is no way to debug the problem container, and find out where the wrong?

Docker build -t. After the failure, encountered strange problems

Dockerfile FROM ubuntu RUN apt-get update && apt-get install -y mysql-server php5 php5-xdebug Failed to create a few packages because it was not found Docker build -t docker_image1. E: Package 'php5' has no design candidate E: Unable to locate package php5-xdebug The operation produces an image with no name REPOSITORY TAG IMAGE ID CREATED VIRTUAL […]

Daocker-machine ip how to amend it?

Daocker-machine ip how to amend it

Tengine + php-fpm, visit index.php normal visit index.PHP it will be downloaded from the php file.

server { listen 80; server_name localhost; access_log /data/sites_logs/default.log combined; root /data/sites/default; index index.htm index.html index.php; if ( $query_string ~* ".*[\;'\<\>].*" ){ return 404; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 7d; } ###########################################隐藏index.php location / { index index.htm index.html index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; […]

How is the docker container just going out?

My dockerfile: FROM continuumio/miniconda:latest MAINTAINER Kamil Kwiek <kamil.kwiek@continuum.io> ADD backend.tar.gz /usr/src/ # app 所在目录WORKDIR /usr/src/backend # 安装miniconda,配置conda 环境RUN apt-get install -y gcc g++ COPY backend_uwsgi.ini /usr/src/backend/ COPY environment.txt /usr/src/backend/environment.txt RUN conda env create -f /usr/src/backend/environment.txt Contents of start.sh: #!/bin/bash # docker exec -d mysql mysql -uroot -p123456 -e "create database blog;" docker build -t feiyu/django-app […]

Base image how to choose?

Just touch docker soon, learn the most basic things At present the company's services (JavaEE-based) are running on centos, I also tried to build a centos: 7-based mirror of the container in contact with some of the information outside the process, found that the sample is to ubuntu majority Official ubuntu support is better, I […]

Docker following the creation of IMAGE their ID the same?

Docker following the creation of IMAGE their ID the same? How is this going on? The The The And can not be deleted. Just started learning docker. Please enlighten God.

Dockerfile RUN svn encounter character set to ask

Part of dockerfile FROM fanne/jdk_base_v001:1.6 COPY .subversion /root/.subversion RUN mkdir -pv /usr/mtserver/ RUN yum install -y svn RUN locale RUN localedef -i zh_CN -c -f UTF-8 zh_CN.UTF-8 RUN echo "export LC_ALL=zh_CN.UTF-8" >> /etc/profile && source /etc/profile WORKDIR /usr/mtserver/ RUN svn co svn://xxx.xxx.xx.com/mt_all/mt_op mt_op WORKDIR / Which inherited the image when the official website of the […]

Heads up! This alert needs your attention, but it's not super important.