You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3 directories, 8 files
[root@localhost temp]# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout vsftpd/vsftpd.pem -out vsftpd/vsft
Generating a 2048 bit RSA private key
...............................+++
....+++
writing new private key to 'vsftpd/vsftpd.pem'
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [XX]:cn
State or Province Name (full name) []:henan
Locality Name (eg, city) [Default City]:zhengzhou
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:jack
Email Address []:jackadam@sina.com
[root@localhost temp]# echo "tom:$(openssl passwd -1 uzia9Tu6)" >> vsftpd/passwd
[root@localhost temp]# echo "ftp's home" > ./ftp/README
[root@localhost temp]# docker-compose up -d
Creating temp_vsftpd_1...
[root@localhost temp]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
15ea1a15d899 vimagick/vsftpd "vsftpd /etc/vsftp..." 3 minutes ago Restarting (2) About a minute ago temp_vsftpd_1
[root@localhost temp]# docker-compose ps
Name Command State Ports
temp_vsftpd_1 vsftpd /etc/vsftpd/vsftpd.conf Up
[root@localhost temp]#
i can't use ftp client.
[root@localhost temp]# ftp 192.168.1.237
ftp: connect: Connection refused
[root@localhost temp]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:ac:ff:bf brd ff:ff:ff:ff:ff:ff
inet 192.168.1.237/24 brd 192.168.1.255 scope global dynamic enp0s3
valid_lft 39329sec preferred_lft 39329sec
inet6 fd8c:aa58:5af2::51b/128 scope global
valid_lft forever preferred_lft forever
inet6 fd8c:aa58:5af2:0:d442:4d2a:95a2:f0b8/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::67f3:84a:8035:3caa/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:55:bc:54:45 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:55ff:febc:5445/64 scope link
valid_lft forever preferred_lft forever
[root@localhost temp]#
[root@localhost ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-44.git584d391.fc27.x86_64
Go version: go1.9.1
Git commit: caba767-unsupported
Built: Thu Nov 23 21:17:26 2017
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-44.git584d391.fc27.x86_64
Go version: go1.9.1
Git commit: caba767-unsupported
Built: Thu Nov 23 21:17:26 2017
OS/Arch: linux/amd64
Experimental: false
I Clone the docker directory on my fedora.
Directory Tree like you readme.
[root@localhost temp]# tree
.
├── docker-compose.yml
├── Dockerfile
├── ftp
│ └── README
├── pam.d
│ └── vsftpd
├── README.md
└── vsftpd
├── passwd
├── vsftpd.conf
└── vsftpd.pem
3 directories, 8 files
[root@localhost temp]# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout vsftpd/vsftpd.pem -out vsftpd/vsft
Generating a 2048 bit RSA private key
...............................+++
....+++
writing new private key to 'vsftpd/vsftpd.pem'
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [XX]:cn
State or Province Name (full name) []:henan
Locality Name (eg, city) [Default City]:zhengzhou
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:jack
Email Address []:jackadam@sina.com
[root@localhost temp]# echo "tom:$(openssl passwd -1 uzia9Tu6)" >> vsftpd/passwd
[root@localhost temp]# echo "ftp's home" > ./ftp/README
[root@localhost temp]# docker-compose up -d
Creating temp_vsftpd_1...
[root@localhost temp]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
15ea1a15d899 vimagick/vsftpd "vsftpd /etc/vsftp..." 3 minutes ago Restarting (2) About a minute ago temp_vsftpd_1
[root@localhost temp]# docker-compose ps
Name Command State Ports
temp_vsftpd_1 vsftpd /etc/vsftpd/vsftpd.conf Up
[root@localhost temp]#
i can't use ftp client.
[root@localhost temp]# ftp 192.168.1.237
ftp: connect: Connection refused
[root@localhost temp]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:ac:ff:bf brd ff:ff:ff:ff:ff:ff
inet 192.168.1.237/24 brd 192.168.1.255 scope global dynamic enp0s3
valid_lft 39329sec preferred_lft 39329sec
inet6 fd8c:aa58:5af2::51b/128 scope global
valid_lft forever preferred_lft forever
inet6 fd8c:aa58:5af2:0:d442:4d2a:95a2:f0b8/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::67f3:84a:8035:3caa/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:55:bc:54:45 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:55ff:febc:5445/64 scope link
valid_lft forever preferred_lft forever
[root@localhost temp]#
[root@localhost ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-44.git584d391.fc27.x86_64
Go version: go1.9.1
Git commit: caba767-unsupported
Built: Thu Nov 23 21:17:26 2017
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-44.git584d391.fc27.x86_64
Go version: go1.9.1
Git commit: caba767-unsupported
Built: Thu Nov 23 21:17:26 2017
OS/Arch: linux/amd64
Experimental: false
[root@localhost ~]# docker-compose --version
docker-compose version: 1.3.1
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
The text was updated successfully, but these errors were encountered: