1.拉取镜像

建议使用最新版本

docker pull seafileltd/seafile  #seafile 6.3.4版本

2.运行docker 容器

docker run -d --name seafile \
  -e SEAFILE_SERVER_HOSTNAME=10.36.31.161  \
  -v /data/seafile:/shared \
  -p 80:80 \
  seafileltd/seafile:latest

3.访问seafile主页

输入以下网址

http://10.36.31.161

4.修改相关配置

这个是加在这个配置里面的,这里都是控制上传和下载的文件大小的配置,这是在seafile.conf里的

[fileserver]
#最大上传文件单位为MB,为1TB
max_upload_size=1048576
#最大下载目录为MB,为1TB
max_download_dir_size=1048576

5.待解决问题

1.上传目录时,如果其中包含很多文件时报错.想要修改相关配置,官网文档没有给出,只给出上传,以及下载的修改方法。
2.估计应该是seafile的版本太低了,现在seafile已经出到7.0了。

Maximum number of files exceeded 

5.1记一次异常

今天遇到doker seafile 不知道什么原因,意外挂掉了,进行一段操作后,得知seafile 的docker 容器没有启动,具体操作如下:


[root@ieat1 ~]# docker images
REPOSITORY                          TAG                 IMAGE ID            CREATED             SIZE
docker.io/nginx                     latest              98ebf73aba75        7 weeks ago         109 MB
docker.io/mysql                     latest              de764ad211de        7 weeks ago         443 MB
docker.io/redis                     latest              598a6f110d01        8 weeks ago         118 MB
docker.io/fauria/vsftpd             latest              4900fef1a627        4 months ago        261 MB
docker.io/seafileltd/seafile        latest              68e4dbd7c90d        6 months ago        1.03 GB
docker.io/rancher/scheduler         v0.8.6              fbedeaddc3e9        7 months ago        248 MB
docker.io/rancher/agent             v1.2.11             1cc7591af4f5        13 months ago       243 MB
docker.io/rancher/net               v0.13.17            f170c38e3763        13 months ago       311 MB
docker.io/rancher/dns               v0.17.4             678bde0de4d2        14 months ago       249 MB
docker.io/rancher/healthcheck       v0.3.8              ce78cf69cc0b        14 months ago       391 MB
docker.io/rancher/metadata          v0.10.4             02104eb6e270        14 months ago       251 MB
docker.io/rancher/network-manager   v0.7.22             13381626c510        14 months ago       256 MB
docker.io/rancher/net               holder              665d9f6e8cc1        2 years ago         267 MB
[root@ieat1 ~]# docker ps
CONTAINER ID        IMAGE                             COMMAND                  CREATED             STATUS              PORTS                                                            NAMES
c55024ac8bb8        rancher/scheduler:v0.8.6          "/.r/r /rancher-en..."   About an hour ago   Up About an hour                                                                     r-scheduler-scheduler-1-421bef1d
3d785f39c0f3        fauria/vsftpd                     "/usr/sbin/run-vsf..."   5 weeks ago         Up 2 days           0.0.0.0:20-21->20-21/tcp, 0.0.0.0:21100-21110->21100-21110/tcp   vsftpd
abd4d5d89b20        rancher/dns:v0.17.4               "/rancher-entrypoi..."   5 weeks ago         Up 2 days                                                                            r-network-services-metadata-dns-5-3a54b7e3
19289cb5b39b        rancher/healthcheck:v0.3.8        "/.r/r /rancher-en..."   5 weeks ago         Up 2 days                                                                            r-healthcheck-healthcheck-5-bdacdf26
e0606c299ed1        rancher/metadata:v0.10.4          "/rancher-entrypoi..."   5 weeks ago         Up 2 days                                                                            r-network-services-metadata-5-944c46f4
ce1e6f7ee4e4        rancher/network-manager:v0.7.22   "/rancher-entrypoi..."   5 weeks ago         Up 2 days                                                                            r-network-services-network-manager-5-ae860036
7ec9b65e37f1        rancher/net:v0.13.17              "/rancher-entrypoi..."   5 weeks ago         Up 2 days                                                                            r-ipsec-cni-driver-5-64a39019
d938c0feaae7        rancher/agent:v1.2.11             "/run.sh run"            7 weeks ago         Up 2 days                                                                            rancher-agent
[root@ieat1 ~]# docker run -d --name seafile \
>   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161  \
>   -v /data/seafile:/shared \
>   -p 80:80 \
>   seafileltd/seafile:latest
/usr/bin/docker-current: Error response from daemon: Conflict. The container name "/seafile" is already in use by container 7ab1eff1276aa4045c492eaa2412657c3fe46812acd7d90ca0edbf7e59b7132e. You have to remove (or rename) that container to be able to reuse that name..
See '/usr/bin/docker-current run --help'.
[root@ieat1 ~]# docker ps -l
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS               NAMES
c55024ac8bb8        rancher/scheduler:v0.8.6   "/.r/r /rancher-en..."   About an hour ago   Up About an hour                        r-scheduler-scheduler-1-421bef1d
[root@ieat1 ~]# docker remove 7ab1eff1276aa4045c492eaa2412657c3fe46812acd7d90ca0edbf7e59b7132e
docker: 'remove' is not a docker command.
See 'docker --help'
[root@ieat1 ~]# docker rm 7ab1eff1276aa4045c492eaa2412657c3fe46812acd7d90ca0edbf7e59b7132e
7ab1eff1276aa4045c492eaa2412657c3fe46812acd7d90ca0edbf7e59b7132e
[root@ieat1 ~]# docker run -d --name seafile   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161    -v /data/seafile:/shared   -p 80:80   seafileltd/seafile:latest
94d78593ff52503b9dbc250d08cca04a02a87d66a6e250525792a09ab8aa6a48

5.2 记一次异常2021.2.20

简述解决问题步骤 :访问seafile 不可以访问,docker images 找不到镜像,运行启动命令[root@ieat1 ~]# docker run -d --name seafile -e SEAFILE_SERVER_HOSTNAME=10.36.31.161 -v /data/seaflie:/shared -p 80:80 seafileltd/seafile:latest报错本地找不到这个镜像,但是自动下了镜像并进行运行如下运行结果:

Unable to find image 'seafileltd/seafile:latest' locally
Trying to pull repository docker.io/seafileltd/seafile ... 
latest: Pulling from docker.io/seafileltd/seafile
1489501ea318: Pull complete 
c197ac8352c5: Pull complete 
Digest: sha256:f0d42312c8935973515213677619b3fed877c7276949ac18e01804565a21ba7e
Status: Downloaded newer image for docker.io/seafileltd/seafile:latest
a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e138

此时进入的是一个新的容器并不是原来的存在的,里面的原有数据没有了,出现的是一个新的网盘,需要重配置,添加账户之类的,数据难道丢了吗?,所以需要停止容器docker stop seafile 然后重新运行seafile镜像,但是遇到报错:

[root@ieat1 ~]# docker run -d --name seafile   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161    -v /data/seafile:/shared   -p 80:80   seafileltd/seafile:latest
/usr/bin/docker-current: Error response from daemon: Conflict. The container name "/seafile" is already in use by container a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e138. You have to remove (or rename) that container to be able to reuse that name..
See '/usr/bin/docker-current run --help'.

此时删除容器,重新启动容器,进入原来的seafile,并且找到了原来的网盘数据

root@ieat1 ~]# docker rm  a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e13
a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e13
[root@ieat1 ~]# docker run -d --name seafile   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161    -v /data/seafile:/shared   -p 80:80   seafileltd/seafile:latest
be727d27d9bb92324b8ee4d7a480aa61e71999c7cb688b2c6660451763f7506f
[root@ieat1 ~]# 

5.2.1 疑问:

不知道为什么原来的seafile 镜像丢失,重新的下载新的镜像后,第一次启动的容器是新的网盘,把第一次的网盘容器删除掉,然后重新启动一个容器,旧的数据恢复回来了。


Connecting to 10.36.31.161:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last failed login: Sat Feb 20 16:13:55 CST 2021 from 10.36.34.12 on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Wed Feb  3 16:30:32 2021 from 10.36.35.10
[root@ieat1 ~]# docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
0f4bc50e7449        rancher/net:holder                                    "/.r/r /rancher-en..."   38 seconds ago      Up 37 seconds                                                                  r-ipsec-ipsec-5-745d73b0
6905f1500437        rancher/healthcheck:v0.3.8                            "/.r/r /rancher-en..."   39 seconds ago      Up 38 seconds                                                                  r-healthcheck-healthcheck-5-58ca73ce
f33592d449bd        neo4j                                                 "/sbin/tini -g -- ..."   4 weeks ago         Up 26 minutes       0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp   r-common-server-neo4j-kg-1-1fbcbd77
bc951eab309e        10.36.31.162:18092/proxy_pool:1                       "sh start.sh"            2 months ago        Up 26 minutes       0.0.0.0:15010->5010/tcp                                    r-craw-manger-proxy-pool-1-535ba40b
f000f3f9d5ce        nginx                                                 "/docker-entrypoin..."   3 months ago        Up 26 minutes       0.0.0.0:21200->80/tcp                                      r-common-server-ftp-nginx-1-356af2df
a5474d065084        fauria/vsftpd                                         "/usr/sbin/run-vsf..."   3 months ago        Up 26 minutes                                                                  r-common-server-ftp-1-7f7f7376
ee60c78be947        docker.elastic.co/elasticsearch/elasticsearch:7.5.2   "/usr/local/bin/do..."   3 months ago        Up 26 minutes       0.0.0.0:19200->9200/tcp, 0.0.0.0:19300->9300/tcp           r-common-server-elasticsearch-1-e6cf1153
d43bf77bdc71        docker.elastic.co/kibana/kibana:7.5.2                 "/usr/local/bin/du..."   3 months ago        Up 26 minutes       0.0.0.0:15601->5601/tcp                                    r-common-server-kibana-1-58105222
08cc5d3c46df        rancher/network-manager:v0.7.22                       "/rancher-entrypoi..."   3 months ago        Up 31 seconds                                                                  r-network-services-network-manager-5-cb3b6025
39c00574c76b        rancher/net:v0.13.17                                  "/rancher-entrypoi..."   3 months ago        Up 31 seconds                                                                  r-ipsec-cni-driver-5-f01322de
355eb8c8a068        rancher/agent:v1.2.11                                 "/run.sh run"            3 months ago        Up 26 minutes                                                                  rancher-agent
[root@ieat1 ~]# docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                            
0f4bc50e7449        rancher/net:holder                                    "/.r/r /rancher-en..."   44 seconds ago      Up 43 seconds                                                        
6905f1500437        rancher/healthcheck:v0.3.8                            "/.r/r /rancher-en..."   45 seconds ago      Up 44 seconds                                                        
f33592d449bd        neo4j                                                 "/sbin/tini -g -- ..."   4 weeks ago         Up 26 minutes       0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7
bc951eab309e        10.36.31.162:18092/proxy_pool:1                       "sh start.sh"            2 months ago        Up 26 minutes       0.0.0.0:15010->5010/tcp                          
f000f3f9d5ce        nginx                                                 "/docker-entrypoin..."   3 months ago        Up 26 minutes       0.0.0.0:21200->80/tcp                            
a5474d065084        fauria/vsftpd                                         "/usr/sbin/run-vsf..."   3 months ago        Up 26 minutes                                                        
ee60c78be947        docker.elastic.co/elasticsearch/elasticsearch:7.5.2   "/usr/local/bin/do..."   3 months ago        Up 26 minutes       0.0.0.0:19200->9200/tcp, 0.0.0.0:19300->9300/tcp 
d43bf77bdc71        docker.elastic.co/kibana/kibana:7.5.2                 "/usr/local/bin/du..."   3 months ago        Up 26 minutes       0.0.0.0:15601->5601/tcp                          
08cc5d3c46df        rancher/network-manager:v0.7.22                       "/rancher-entrypoi..."   3 months ago        Up 37 seconds                                                        25
39c00574c76b        rancher/net:v0.13.17                                  "/rancher-entrypoi..."   3 months ago        Up 37 seconds                                                        
355eb8c8a068        rancher/agent:v1.2.11                                 "/run.sh run"            3 months ago        Up 26 minutes                                                        
[root@ieat1 ~]# docker images
REPOSITORY                                      TAG                 IMAGE ID            CREATED             SIZE
docker.io/neo4j                                 latest              6f46b6ed7c2d        5 weeks ago         538 MB
10.36.31.162:18092/proxy_pool                   1                   8f4f7da10d49        2 months ago        74.4 MB
docker.io/nginx                                 latest              c39a868aad02        3 months ago        133 MB
docker.io/fauria/vsftpd                         latest              007276d7208b        4 months ago        255 MB
docker.elastic.co/kibana/kibana                 7.5.2               a6e894c36481        13 months ago       950 MB
docker.elastic.co/elasticsearch/elasticsearch   7.5.2               929d271f1798        13 months ago       779 MB
docker.io/rancher/scheduler                     v0.8.6              fbedeaddc3e9        2 years ago         248 MB
docker.io/rancher/agent                         v1.2.11             1cc7591af4f5        2 years ago         243 MB
docker.io/rancher/net                           v0.13.17            f170c38e3763        2 years ago         311 MB
docker.io/rancher/dns                           v0.17.4             678bde0de4d2        2 years ago         249 MB
docker.io/rancher/healthcheck                   v0.3.8              ce78cf69cc0b        2 years ago         391 MB
docker.io/rancher/metadata                      v0.10.4             02104eb6e270        2 years ago         251 MB
docker.io/rancher/network-manager               v0.7.22             13381626c510        2 years ago         256 MB
docker.io/rancher/net                           holder              665d9f6e8cc1        3 years ago         267 MB
[root@ieat1 ~]#  docker run -d --name seafile \
> >   -e SEAFILE_SERVER_HOSTNAME=10.**.**.161  \
> >   -v /data/seafile:/shared \
> >   -p 80:80 \
>  docker run -d --name seafile >   -e SEAFILE_SERVER_HOSTNAME=10.**.**.161  >   -v /data/seafile:/shared >   -p 80:80 \
> ^C
[root@ieat1 ~]# docker run -d --name seafile \
> >   -e SEAFILE_SERVER_HOSTNAME=10.**.**.161  \
> >   -v /data/seafile:/shared \
> >   -p 80:80 \
> docker run -d --name seafile >   -e SEAFILE_SERVER_HOSTNAME=10.**.**.161  >   -v /data/seafile:/shared >   -p 80:80 \
> ^C
[root@ieat1 ~]# docker run -d --name seafile -e SEAFILE_SERVER_HOSTNAME=10.36.31.161 -v /data/seaflie:/shared -p 80:80 seafileltd/seafile:latest
Unable to find image 'seafileltd/seafile:latest' locally
Trying to pull repository docker.io/seafileltd/seafile ... 
latest: Pulling from docker.io/seafileltd/seafile
1489501ea318: Pull complete 
c197ac8352c5: Pull complete 
Digest: sha256:f0d42312c8935973515213677619b3fed877c7276949ac18e01804565a21ba7e
Status: Downloaded newer image for docker.io/seafileltd/seafile:latest
a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e138
[root@ieat1 ~]# docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
6cf8bde22b92        rancher/net:holder                                    "/.r/r /rancher-en..."   12 seconds ago      Up 11 seconds                                                                  r-ipsec-ipsec-5-d205faa9
df288aafed98        rancher/healthcheck:v0.3.8                            "/.r/r /rancher-en..."   13 seconds ago      Up 12 seconds                                                                  r-healthcheck-healthcheck-5-6813aa6d
a2526dc860d5        seafileltd/seafile:latest                             "/sbin/my_init -- ..."   57 seconds ago      Up 56 seconds       0.0.0.0:80->80/tcp                                         seafile
f33592d449bd        neo4j                                                 "/sbin/tini -g -- ..."   4 weeks ago         Up 41 minutes       0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp   r-common-server-neo4j-kg-1-1fbcbd77
bc951eab309e        10.36.31.162:18092/proxy_pool:1                       "sh start.sh"            2 months ago        Up 41 minutes       0.0.0.0:15010->5010/tcp                                    r-craw-manger-proxy-pool-1-535ba40b
f000f3f9d5ce        nginx                                                 "/docker-entrypoin..."   3 months ago        Up 41 minutes       0.0.0.0:21200->80/tcp                                      r-common-server-ftp-nginx-1-356af2df
a5474d065084        fauria/vsftpd                                         "/usr/sbin/run-vsf..."   3 months ago        Up 41 minutes                                                                  r-common-server-ftp-1-7f7f7376
ee60c78be947        docker.elastic.co/elasticsearch/elasticsearch:7.5.2   "/usr/local/bin/do..."   3 months ago        Up 41 minutes       0.0.0.0:19200->9200/tcp, 0.0.0.0:19300->9300/tcp           r-common-server-elasticsearch-1-e6cf1153
d43bf77bdc71        docker.elastic.co/kibana/kibana:7.5.2                 "/usr/local/bin/du..."   3 months ago        Up 41 minutes       0.0.0.0:15601->5601/tcp                                    r-common-server-kibana-1-58105222
08cc5d3c46df        rancher/network-manager:v0.7.22                       "/rancher-entrypoi..."   3 months ago        Up 34 seconds                                                                  r-network-services-network-manager-5-cb3b6025
39c00574c76b        rancher/net:v0.13.17                                  "/rancher-entrypoi..."   3 months ago        Up 34 seconds                                                                  r-ipsec-cni-driver-5-f01322de
355eb8c8a068        rancher/agent:v1.2.11                                 "/run.sh run"            3 months ago        Up 42 minutes                                                                  rancher-agent
[root@ieat1 ~]# docker ps -l
CONTAINER ID        IMAGE                COMMAND                  CREATED             STATUS              PORTS               NAMES
6cf8bde22b92        rancher/net:holder   "/.r/r /rancher-en..."   18 seconds ago      Up 17 seconds                           r-ipsec-ipsec-5-d205faa9
[root@ieat1 ~]# docker run -d --name seafile   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161    -v /data/seafile:/shared   -p 80:80   seafileltd/seafile:latest
/usr/bin/docker-current: Error response from daemon: Conflict. The container name "/seafile" is already in use by container a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e138. You have to remove (or rename) that container to be able to reuse that name..
See '/usr/bin/docker-current run --help'.
[root@ieat1 ~]# docker rm a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e13
Error response from daemon: You cannot remove a running container a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e138. Stop the container before attempting removal or use -f
[root@ieat1 ~]# docker exec -it seafile /opt/seafile/seafile-server-latest/reset-admin.sh
E-mail address: admin
Error: That e-mail address is invalid.
E-mail address: a^H^H^H^H^H^H^H^H^C
Operation cancelled.
[root@ieat1 ~]# docker exec -it seafile /opt/seafile/seafile-server-latest/reset-admin.sh
E-mail address: weyai163@163.cxom^H^H^H^[[2~^H^H^C
Operation cancelled.
[root@ieat1 ~]# docker exec -it seafile /opt/seafile/seafile-server-latest/reset-admin.sh
E-mail address: 84^H^H^C
Operation cancelled.
[root@ieat1 ~]# docker exec -it seafile /opt/seafile/seafile-server-latest/reset-admin.sh
E-mail address: weyai163@163.com
Password: 
Password (again): 
Superuser created successfully.
[root@ieat1 ~]# ll
总用量 15148
drwxr-xr-x  22 root root      325 11月 29 2019 anaconda3
-rw-------.  1 root root     2046 7月  17 2019 anaconda-ks.cfg
drwxr-xr-x   2 root root        6 9月  11 16:19 Desktop
-rw-r--r--   1 root root        0 8月  26 16:44 -e
-rw-r--r--.  1 root root     2077 7月  17 2019 initial-setup-ks.cfg
drwxr-xr-x   2 root root     4096 11月 28 2019 my
-rw-------   1 root root      429 5月  25 2020 nohup.out
-rw-r--r--   1 root root       85 5月  25 2020 out.txt
-rw-r--r--   1 root root        0 8月  26 16:44 -p
drwxr-xr-x   3  501  501       19 11月 29 2019 Python-3.6.1
-rw-r--r--   1 root root  2292527 8月  22 2018 SunloginClient9.6.1.tar.gz
-rw-r--r--.  1 root root 13196027 7月  11 2019 teamviewer-host.x86_64.rpm
drwxr-xr-x   3 root root       19 11月 11 14:44 tmp
-rw-r--r--   1 root root        0 8月  26 16:44 -v
drwxr-xr-x   6 root root      249 1月   6 2020 w-lda-master
drwxr-xr-x   4 root root       43 11月 26 2019 zut_nlp_Corpus
drwxr-xr-x   2 root root        6 9月  11 16:19 公共
drwxr-xr-x   2 root root        6 9月  11 16:19 模板
drwxr-xr-x   2 root root        6 9月  11 16:19 视频
drwxr-xr-x   2 root root        6 9月  11 16:19 图片
drwxr-xr-x   2 root root        6 9月  11 16:19 文档
drwxr-xr-x   2 root root        6 9月  11 16:19 下载
drwxr-xr-x   2 root root        6 9月  11 16:19 音乐
drwxr-xr-x.  2 root root        6 7月  21 2019 桌面
[root@ieat1 ~]# docker images
REPOSITORY                                      TAG                 IMAGE ID            CREATED             SIZE
docker.io/neo4j                                 latest              6f46b6ed7c2d        5 weeks ago         538 MB
10.36.31.162:18092/proxy_pool                   1                   8f4f7da10d49        2 months ago        74.4 MB
docker.io/nginx                                 latest              c39a868aad02        3 months ago        133 MB
docker.io/fauria/vsftpd                         latest              007276d7208b        4 months ago        255 MB
docker.elastic.co/kibana/kibana                 7.5.2               a6e894c36481        13 months ago       950 MB
docker.elastic.co/elasticsearch/elasticsearch   7.5.2               929d271f1798        13 months ago       779 MB
docker.io/seafileltd/seafile                    latest              68e4dbd7c90d        2 years ago         1.03 GB
docker.io/rancher/scheduler                     v0.8.6              fbedeaddc3e9        2 years ago         248 MB
docker.io/rancher/agent                         v1.2.11             1cc7591af4f5        2 years ago         243 MB
docker.io/rancher/net                           v0.13.17            f170c38e3763        2 years ago         311 MB
docker.io/rancher/dns                           v0.17.4             678bde0de4d2        2 years ago         249 MB
docker.io/rancher/healthcheck                   v0.3.8              ce78cf69cc0b        2 years ago         391 MB
docker.io/rancher/metadata                      v0.10.4             02104eb6e270        2 years ago         251 MB
docker.io/rancher/network-manager               v0.7.22             13381626c510        2 years ago         256 MB
docker.io/rancher/net                           holder              665d9f6e8cc1        3 years ago         267 MB
[root@ieat1 ~]# docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED              STATUS                  PORTS                                                      NAMES
3f5a820dc432        rancher/net:holder                                    "/.r/r /rancher-en..."   About a minute ago   Up About a minute                                                                  r-ipsec-ipsec-5-ce3407db
8755ec8a215e        rancher/healthcheck:v0.3.8                            "/.r/r /rancher-en..."   About a minute ago   Up About a minute                                                                  r-healthcheck-healthcheck-5-3ca98c8f
a2526dc860d5        seafileltd/seafile:latest                             "/sbin/my_init -- ..."   17 minutes ago       Up 17 minutes           0.0.0.0:80->80/tcp                                         seafile
f33592d449bd        neo4j                                                 "/sbin/tini -g -- ..."   4 weeks ago          Up 58 minutes           0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp   r-common-server-neo4j-kg-1-1fbcbd77
bc951eab309e        10.36.31.162:18092/proxy_pool:1                       "sh start.sh"            2 months ago         Up 58 minutes           0.0.0.0:15010->5010/tcp                                    r-craw-manger-proxy-pool-1-535ba40b
f000f3f9d5ce        nginx                                                 "/docker-entrypoin..."   3 months ago         Up 58 minutes           0.0.0.0:21200->80/tcp                                      r-common-server-ftp-nginx-1-356af2df
a5474d065084        fauria/vsftpd                                         "/usr/sbin/run-vsf..."   3 months ago         Up 58 minutes                                                                      r-common-server-ftp-1-7f7f7376
ee60c78be947        docker.elastic.co/elasticsearch/elasticsearch:7.5.2   "/usr/local/bin/do..."   3 months ago         Up 58 minutes           0.0.0.0:19200->9200/tcp, 0.0.0.0:19300->9300/tcp           r-common-server-elasticsearch-1-e6cf1153
d43bf77bdc71        docker.elastic.co/kibana/kibana:7.5.2                 "/usr/local/bin/du..."   3 months ago         Up 58 minutes           0.0.0.0:15601->5601/tcp                                    r-common-server-kibana-1-58105222
08cc5d3c46df        rancher/network-manager:v0.7.22                       "/rancher-entrypoi..."   3 months ago         Up Less than a second                                                              r-network-services-network-manager-5-cb3b6025
39c00574c76b        rancher/net:v0.13.17                                  "/rancher-entrypoi..."   3 months ago         Up Less than a second                                                              r-ipsec-cni-driver-5-f01322de
355eb8c8a068        rancher/agent:v1.2.11                                 "/run.sh run"            3 months ago         Up 59 minutes                                                                      rancher-agent
[root@ieat1 ~]# docker stop seafile
seafile
[root@ieat1 ~]# docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
f33592d449bd        neo4j                                                 "/sbin/tini -g -- ..."   4 weeks ago         Up About an hour    0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp   r-common-server-neo4j-kg-1-1fbcbd77
bc951eab309e        10.36.31.162:18092/proxy_pool:1                       "sh start.sh"            2 months ago        Up About an hour    0.0.0.0:15010->5010/tcp                                    r-craw-manger-proxy-pool-1-535ba40b
f000f3f9d5ce        nginx                                                 "/docker-entrypoin..."   3 months ago        Up About an hour    0.0.0.0:21200->80/tcp                                      r-common-server-ftp-nginx-1-356af2df
a5474d065084        fauria/vsftpd                                         "/usr/sbin/run-vsf..."   3 months ago        Up About an hour                                                               r-common-server-ftp-1-7f7f7376
ee60c78be947        docker.elastic.co/elasticsearch/elasticsearch:7.5.2   "/usr/local/bin/do..."   3 months ago        Up About an hour    0.0.0.0:19200->9200/tcp, 0.0.0.0:19300->9300/tcp           r-common-server-elasticsearch-1-e6cf1153
d43bf77bdc71        docker.elastic.co/kibana/kibana:7.5.2                 "/usr/local/bin/du..."   3 months ago        Up About an hour    0.0.0.0:15601->5601/tcp                                    r-common-server-kibana-1-58105222
08cc5d3c46df        rancher/network-manager:v0.7.22                       "/rancher-entrypoi..."   3 months ago        Up 9 seconds                                                                   r-network-services-network-manager-5-cb3b6025
39c00574c76b        rancher/net:v0.13.17                                  "/rancher-entrypoi..."   3 months ago        Up 10 seconds                                                                  r-ipsec-cni-driver-5-f01322de
355eb8c8a068        rancher/agent:v1.2.11                                 "/run.sh run"            3 months ago        Up About an hour                                                               rancher-agent
[root@ieat1 ~]# docker run -d --name seafile   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161    -v /data/seafile:/shared   -p 80:80   seafileltd/seafile:latest
/usr/bin/docker-current: Error response from daemon: Conflict. The container name "/seafile" is already in use by container a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e138. You have to remove (or rename) that container to be able to reuse that name..
See '/usr/bin/docker-current run --help'.
[root@ieat1 ~]# docker rm  a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e13
a2526dc860d5b7098367547da1e52519b907f3fccf60155c9b0a8051cc16e13
[root@ieat1 ~]# docker run -d --name seafile   -e SEAFILE_SERVER_HOSTNAME=10.36.31.161    -v /data/seafile:/shared   -p 80:80   seafileltd/seafile:latest
be727d27d9bb92324b8ee4d7a480aa61e71999c7cb688b2c6660451763f7506f
[root@ieat1 ~]# 

6.dokcer 自动启动服务

docker update --restart=always a665051ec217
a665051ec217 镜像名字
在这里插入图片描述

reference: https://cloud.seafile.com/published/seafile-manual-cn/config/seafile-conf.md

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐